alamb commented on code in PR #8998:
URL: https://github.com/apache/arrow-rs/pull/8998#discussion_r2620330328
##########
arrow-json/Cargo.toml:
##########
@@ -35,12 +35,18 @@ bench = false
[package.metadata.docs.rs]
all-features = true
+[features]
+default = []
+variant_experimental = []
+
[dependencies]
arrow-array = { workspace = true }
arrow-buffer = { workspace = true }
arrow-cast = { workspace = true }
arrow-data = { workspace = true }
arrow-schema = { workspace = true }
+parquet-variant-compute = { workspace = true }
Review Comment:
yeah this is kind of wacky -- that arrow now depends on some sub part of
parquet
##########
arrow-json/src/reader/variant_array.rs:
##########
@@ -0,0 +1,99 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+use arrow_array::{Array, StructArray};
+use parquet_variant::{ObjectFieldBuilder, Variant, VariantBuilder,
VariantBuilderExt};
+use parquet_variant_compute::VariantArrayBuilder;
+use arrow_data::ArrayData;
+use arrow_schema::ArrowError;
+
+use crate::reader::ArrayDecoder;
+use crate::reader::tape::{Tape, TapeElement};
+
+#[derive(Default)]
+pub struct VariantArrayDecoder {}
+
+impl ArrayDecoder for VariantArrayDecoder {
Review Comment:
this is so great
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]