Skip to content

Rename Variant assemblies to Scalars#323

Merged
CurtHagenlocher merged 8 commits intoapache:mainfrom
CurtHagenlocher:RenameToScalars
Apr 22, 2026
Merged

Rename Variant assemblies to Scalars#323
CurtHagenlocher merged 8 commits intoapache:mainfrom
CurtHagenlocher:RenameToScalars

Conversation

@CurtHagenlocher
Copy link
Copy Markdown
Contributor

What's Changed

  • Renames Apache.Arrow.Variant project and assembly to Apache.Arrow.Scalars
  • Renames Apache.Arrow.Variant.Tests project and assembly to Apache.Arrow.Scalars.Tests
  • Moves Variant-related types into the Apache.Arrow.Scalars.Variant namespace

CurtHagenlocher and others added 3 commits April 21, 2026 07:03
Rename assembly, project, namespace, and test project:
- src/Apache.Arrow.Variant -> src/Apache.Arrow.Scalars
- test/Apache.Arrow.Variant.Tests -> test/Apache.Arrow.Scalars.Tests
- Update all namespace references across the solution

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Move all Variant*.cs files into a Variant/ subdirectory within
src/Apache.Arrow.Scalars and update the namespace from
Apache.Arrow.Scalars to Apache.Arrow.Scalars.Variant.

Update using directives in all consumers: Operations, Tests, and
Benchmarks projects.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR renames the former Apache.Arrow.Variant library/test assemblies to Apache.Arrow.Scalars and updates namespaces/usings and project references so Variant-related APIs live under Apache.Arrow.Scalars.Variant.

Changes:

  • Introduces the new Apache.Arrow.Scalars project and moves Variant types into Apache.Arrow.Scalars.Variant.
  • Updates Operations JSON code and tests to reference the new Apache.Arrow.Scalars.Variant namespace/project.
  • Renames test/benchmark namespaces and solution/slnf/release-script references from Variant to Scalars.

Reviewed changes

Copilot reviewed 42 out of 43 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
test/Apache.Arrow.Variant.Benchmarks/StructVariantValue.cs Updates namespace/imports to Scalars/Variant.
test/Apache.Arrow.Variant.Benchmarks/Program.cs Updates namespace/imports to Scalars/Variant.
test/Apache.Arrow.Variant.Benchmarks/MixedWorkloadBenchmarks.cs Updates namespace/imports to Scalars/Variant.
test/Apache.Arrow.Variant.Benchmarks/EqualityBenchmarks.cs Updates namespace/imports to Scalars/Variant.
test/Apache.Arrow.Variant.Benchmarks/EncodingBenchmarks.cs Updates namespace/imports to Scalars/Variant.
test/Apache.Arrow.Variant.Benchmarks/CreationBenchmarks.cs Updates namespace/imports to Scalars/Variant.
test/Apache.Arrow.Variant.Benchmarks/ArrayBenchmarks.cs Updates namespace/imports to Scalars/Variant.
test/Apache.Arrow.Variant.Benchmarks/Apache.Arrow.Variant.Benchmarks.csproj Retargets project reference to Apache.Arrow.Scalars.
test/Apache.Arrow.Variant.Benchmarks/AccessBenchmarks.cs Updates namespace/imports to Scalars/Variant.
test/Apache.Arrow.Scalars.Tests/VariantValueTests.cs Updates namespace/imports to Apache.Arrow.Scalars.Variant.
test/Apache.Arrow.Scalars.Tests/VariantSqlDecimalTests.cs Updates namespace/imports to Apache.Arrow.Scalars.Variant.
test/Apache.Arrow.Scalars.Tests/VariantRoundTripTests.cs Updates namespace/imports to Apache.Arrow.Scalars.Variant.
test/Apache.Arrow.Scalars.Tests/VariantReaderPrimitiveTests.cs Updates namespace/imports to Apache.Arrow.Scalars.Variant.
test/Apache.Arrow.Scalars.Tests/VariantReaderObjectTests.cs Updates namespace/imports to Apache.Arrow.Scalars.Variant.
test/Apache.Arrow.Scalars.Tests/VariantReaderArrayTests.cs Updates namespace/imports to Apache.Arrow.Scalars.Variant.
test/Apache.Arrow.Scalars.Tests/VariantMetadataTests.cs Updates namespace/imports to Apache.Arrow.Scalars.Variant.
test/Apache.Arrow.Scalars.Tests/VariantEncodingHelperTests.cs Updates namespace/imports to Apache.Arrow.Scalars.Variant.
test/Apache.Arrow.Scalars.Tests/VariantBuilderTests.cs Updates namespace/imports to Apache.Arrow.Scalars.Variant.
test/Apache.Arrow.Scalars.Tests/TestVectors.cs Updates namespace/imports to Apache.Arrow.Scalars.Variant.
test/Apache.Arrow.Scalars.Tests/ParquetTestingVectorTests.cs Updates namespace/imports to Apache.Arrow.Scalars.Variant.
test/Apache.Arrow.Scalars.Tests/Apache.Arrow.Scalars.Tests.csproj Retargets project reference to Apache.Arrow.Scalars.
test/Apache.Arrow.Operations.Tests/Json/VariantJsonTests.cs Switches using from Variant to Scalars.Variant.
test/Apache.Arrow.Operations.Tests/Json/VariantDecimalJsonTests.cs Switches using from Variant to Scalars.Variant.
src/Apache.Arrow.Scalars/Variant/VariantValueWriter.cs Moves type into Apache.Arrow.Scalars.Variant namespace.
src/Apache.Arrow.Scalars/Variant/VariantValue.cs Moves type into Apache.Arrow.Scalars.Variant namespace.
src/Apache.Arrow.Scalars/Variant/VariantReader.cs Moves type into Apache.Arrow.Scalars.Variant namespace.
src/Apache.Arrow.Scalars/Variant/VariantPrimitiveType.cs Moves type into Apache.Arrow.Scalars.Variant namespace.
src/Apache.Arrow.Scalars/Variant/VariantObjectReader.cs Moves type into Apache.Arrow.Scalars.Variant namespace.
src/Apache.Arrow.Scalars/Variant/VariantMetadataBuilder.cs Moves type into Apache.Arrow.Scalars.Variant namespace.
src/Apache.Arrow.Scalars/Variant/VariantMetadata.cs Moves type into Apache.Arrow.Scalars.Variant namespace.
src/Apache.Arrow.Scalars/Variant/VariantEncodingHelper.cs Moves type into Apache.Arrow.Scalars.Variant namespace.
src/Apache.Arrow.Scalars/Variant/VariantBuilder.cs Moves type into Apache.Arrow.Scalars.Variant namespace.
src/Apache.Arrow.Scalars/Variant/VariantBasicType.cs Moves type into Apache.Arrow.Scalars.Variant namespace.
src/Apache.Arrow.Scalars/Variant/VariantArrayReader.cs Moves type into Apache.Arrow.Scalars.Variant namespace.
src/Apache.Arrow.Scalars/Properties/AssemblyInfo.cs Updates InternalsVisibleTo to Apache.Arrow.Scalars.Tests.
src/Apache.Arrow.Scalars/Apache.Arrow.Scalars.csproj Adds new Scalars project definition.
src/Apache.Arrow.Operations/Json/VariantJsonWriter.cs Switches using from Variant to Scalars.Variant.
src/Apache.Arrow.Operations/Json/VariantJsonReader.cs Switches using from Variant to Scalars.Variant.
src/Apache.Arrow.Operations/Json/VariantJsonConverter.cs Switches using from Variant to Scalars.Variant.
src/Apache.Arrow.Operations/Apache.Arrow.Operations.csproj Updates project reference to Apache.Arrow.Scalars.
dev/release/verify_rc.sh Updates package verification references to Scalars packages/tests.
Apache.Arrow.sln Renames solution project entries from Variant to Scalars.
Apache.Arrow.Tests.slnf Updates solution filter to include Apache.Arrow.Scalars.Tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Apache.Arrow.sln Outdated
Comment thread Apache.Arrow.sln Outdated
Copy link
Copy Markdown
Contributor

@adamreeve adamreeve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me thanks Curt

@CurtHagenlocher CurtHagenlocher merged commit 61c3ff1 into apache:main Apr 22, 2026
14 checks passed
@CurtHagenlocher CurtHagenlocher deleted the RenameToScalars branch April 23, 2026 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants