Skip to content

Commit e15ecc8

Browse files
committed
GH-45946: [C++][Parquet] Variant decoding
1 parent e16067a commit e15ecc8

8 files changed

Lines changed: 3640 additions & 2 deletions

File tree

cpp/src/arrow/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ set(ARROW_SRCS
391391
extension/bool8.cc
392392
extension/json.cc
393393
extension/parquet_variant.cc
394+
extension/variant_internal.cc
394395
extension/uuid.cc
395396
pretty_print.cc
396397
record_batch.cc

cpp/src/arrow/extension/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
set(CANONICAL_EXTENSION_TESTS bool8_test.cc json_test.cc uuid_test.cc)
18+
set(CANONICAL_EXTENSION_TESTS bool8_test.cc json_test.cc uuid_test.cc
19+
variant_internal_test.cc)
1920

2021
if(ARROW_JSON)
2122
list(APPEND CANONICAL_EXTENSION_TESTS tensor_extension_array_test.cc opaque_test.cc)

cpp/src/arrow/extension/meson.build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
canonical_extension_tests = ['bool8_test.cc', 'json_test.cc', 'uuid_test.cc']
18+
canonical_extension_tests = ['bool8_test.cc', 'json_test.cc', 'uuid_test.cc', 'variant_internal_test.cc']
1919

2020
if needs_json
2121
canonical_extension_tests += [
@@ -40,5 +40,8 @@ install_headers(
4040
'parquet_variant.h',
4141
'uuid.h',
4242
'variable_shape_tensor.h',
43+
# variant_internal.h: public API for variant binary encoding/decoding.
44+
# "internal" refers to the binary encoding internals, not visibility.
45+
'variant_internal.h',
4346
],
4447
)

0 commit comments

Comments
 (0)