Skip to content

[Variant] Add (empty) parquet-variant crate, update parquet-testing pin #7485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ members = [
"arrow-select",
"arrow-string",
"parquet",
"parquet-variant",
"parquet_derive",
"parquet_derive_test",
]
Expand Down Expand Up @@ -100,4 +101,4 @@ chrono = { version = "0.4.40", default-features = false, features = ["clock"] }
[profile.profiling]
inherits = "release"
debug = true
strip = false
strip = false
2 changes: 1 addition & 1 deletion parquet-testing
Submodule parquet-testing updated 65 files
+6 −0 README.md
+67 −0 data/geospatial/README.md
+ data/geospatial/crs-arbitrary-value.parquet
+ data/geospatial/crs-default.parquet
+163 −0 data/geospatial/crs-gen.py
+ data/geospatial/crs-geography.parquet
+ data/geospatial/crs-projjson.parquet
+ data/geospatial/crs-srid.parquet
+213 −0 data/geospatial/geospatial-gen.py
+ data/geospatial/geospatial-with-nan.parquet
+ data/geospatial/geospatial.parquet
+332 −0 data/geospatial/geospatial.yaml
+52 −0 variant/README.md
+ variant/array_empty.metadata
+ variant/array_empty.value
+ variant/array_nested.metadata
+ variant/array_nested.value
+ variant/array_primitive.metadata
+ variant/array_primitive.value
+73 −0 variant/data_dictionary.json
+ variant/long_string.metadata
+ variant/long_string.value
+ variant/object_empty.metadata
+ variant/object_empty.value
+ variant/object_nested.metadata
+ variant/object_nested.value
+ variant/object_primitive.metadata
+ variant/object_primitive.value
+ variant/primitive_binary.metadata
+ variant/primitive_binary.value
+ variant/primitive_boolean_false.metadata
+1 −0 variant/primitive_boolean_false.value
+ variant/primitive_boolean_true.metadata
+1 −0 variant/primitive_boolean_true.value
+ variant/primitive_date.metadata
+ variant/primitive_date.value
+ variant/primitive_decimal16.metadata
+ variant/primitive_decimal16.value
+ variant/primitive_decimal4.metadata
+ variant/primitive_decimal4.value
+ variant/primitive_decimal8.metadata
+ variant/primitive_decimal8.value
+ variant/primitive_double.metadata
+1 −0 variant/primitive_double.value
+ variant/primitive_float.metadata
+1 −0 variant/primitive_float.value
+ variant/primitive_int16.metadata
+1 −0 variant/primitive_int16.value
+ variant/primitive_int32.metadata
+ variant/primitive_int32.value
+ variant/primitive_int64.metadata
+ variant/primitive_int64.value
+ variant/primitive_int8.metadata
+1 −0 variant/primitive_int8.value
+0 −0 variant/primitive_null.metadata
+0 −0 variant/primitive_null.value
+ variant/primitive_string.metadata
+ variant/primitive_string.value
+ variant/primitive_timestamp.metadata
+ variant/primitive_timestamp.value
+ variant/primitive_timestampntz.metadata
+ variant/primitive_timestampntz.value
+173 −0 variant/regen.py
+ variant/short_string.metadata
+1 −0 variant/short_string.value
37 changes: 37 additions & 0 deletions parquet-variant/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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.

[package]
name = "parquet-variant"
# This package is still in development and thus the version does
# not follow the versions of the rest of the crates in this repo.
version = "0.1.0"
license = { workspace = true }
description = "Apache Parquet Variant implementation in Rust"
homepage = { workspace = true }
repository = { workspace = true }
authors = { workspace = true }
keywords = ["arrow", "parquet", "variant"]
readme = "README.md"
edition = { workspace = true }
rust-version = { workspace = true }

[dependencies]

[lib]


44 changes: 44 additions & 0 deletions parquet-variant/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!---
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.
-->

# Apache Parquet Variant Rust Implementation

[![crates.io](https://img.shields.io/crates/v/parquet-variant.svg)](https://crates.io/crates/parquet-variant)
[![docs.rs](https://img.shields.io/docsrs/parquet-variant.svg)](https://docs.rs/parquet/latest/parquet-variant/)

This crate contains an implementation of [Variant Binary Encoding] from
[Apache Parquet]. This software is developed as part of the [Apache Arrow] project.

[Variant Binary Encoding]: https://github.com/apache/parquet-format/blob/master/VariantEncoding.md
[Apache Parquet]: https://parquet.apache.org/
[Apache Arrow]: https://arrow.apache.org/

Please see the [API documentation](https://docs.rs/parquet-variant/latest) for more details.

## 🚧 Work In Progress

NOTE: This crate is under active development and is not yet ready for production use.
If you are interested in helping, you can find more information on the GitHub [Variant issue]

[Variant issue]: https://github.com/apache/arrow-rs/issues/6736


## License

Licensed under the Apache License, Version 2.0: <http://www.apache.org/licenses/LICENSE-2.0>.
28 changes: 28 additions & 0 deletions parquet-variant/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// 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.

//! Implementation of [Variant Binary Encoding] from [Apache Parquet].
//!
//! [Variant Binary Encoding]: https://github.com/apache/parquet-format/blob/master/VariantEncoding.md
//! [Apache Parquet]: https://parquet.apache.org/
//!
//! ## 🚧 Work In Progress
//!
//! This crate is under active development and is not yet ready for production use.
//! If you are interested in helping, you can find more information on the GitHub [Variant issue]
//!
//! [Variant issue]: https://github.com/apache/arrow-rs/issues/6736
Loading