Apache DataFusion SQL Query Engine
ARROW-5123: [Rust] Parquet derive for simple structs
Xavier Lange3a3c1aebb760
diff --git a/.dockerignore b/.dockerignoreindex 083905c743..eb71138c67 100644--- a/.dockerignore+++ b/.dockerignore@@ -55,6 +55,8 @@!rust/arrow-flight/Cargo.toml!rust/parquet/Cargo.toml!rust/parquet/build.rs+!rust/parquet_derive/Cargo.toml+!rust/parquet_derive_test/Cargo.toml!rust/datafusion/Cargo.toml!rust/datafusion/benches!rust/integration-testing/Cargo.tomldiff --git a/ci/docker/debian-10-rust.dockerfile b/ci/docker/debian-10-rust.dockerfileindex b23b03c9a1..9c9c9b5104 100644--- a/ci/docker/debian-10-rust.dockerfile+++ b/ci/docker/debian-10-rust.dockerfile@@ -58,14 +58,18 @@ RUN mkdir \/arrow/rust/benchmarks/src \/arrow/rust/datafusion/src \/arrow/rust/integration-testing/src \- /arrow/rust/parquet/src && \+ /arrow/rust/parquet/src \+ /arrow/rust/parquet_derive/src \+ /arrow/rust/parquet_derive_test/src && \touch \/arrow/rust/arrow-flight/src/lib.rs \/arrow/rust/arrow/src/lib.rs \/arrow/rust/benchmarks/src/lib.rs \/arrow/rust/datafusion/src/lib.rs \/arrow/rust/integration-testing/src/lib.rs \- /arrow/rust/parquet/src/lib.rs+ /arrow/rust/parquet/src/lib.rs \+ /arrow/rust/parquet_derive/src/lib.rs \+ /arrow/rust/parquet_derive_test/src/lib.rs# Compile dependencies for the whole workspaceRUN cd /arrow/rust && cargo build --workspace --lib --all-featuresdiff --git a/dev/release/00-prepare-test.rb b/dev/release/00-prepare-test.rbindex e6841aa85a..eb5859c842 100644--- a/dev/release/00-prepare-test.rb+++ b/dev/release/00-prepare-test.rb@@ -330,6 +330,35 @@ class PrepareTest < Test::Unit::TestCase"+See [crate documentation](https://docs.rs/crate/parquet/#{@release_version}) on available API."],],},+ {+ path: "rust/parquet_derive/Cargo.toml",+ hunks: [+ ["-version = \"#{@snapshot_version}\"",+ "+version = \"#{@release_version}\""],+ ["-parquet = { path = \"../parquet\", version = \"#{@snapshot_version}\" }",+ "+parquet = { path = \"../parquet\", version = \"#{@release_version}\" }"],+ ],+ },+ {+ path: "rust/parquet_derive/README.md",+ hunks: [+ ["-parquet = \"#{@snapshot_version}\"",+ "-parquet_derive = \"#{@snapshot_version}\"",+ "+parquet = \"#{@release_version}\"",+ "+parquet_derive = \"#{@release_version}\""],+ ],+ },+ {+ path: "rust/parquet_derive_test/Cargo.toml",+ hunks: [+ ["-version = \"#{@snapshot_version}\"",+ "+version = \"#{@release_version}\"",+ "-parquet = { path = \"../parquet\", version = \"#{@snapshot_version}\" }",+ "-parquet_derive = { path = \"../parquet_derive\", version = \"#{@snapshot_version}\" }",+ "+parquet = { path = \"../parquet\", version = \"#{@release_version}\" }",+ "+parquet_derive = { path = \"../parquet_derive\", version = \"#{@release_version}\" }"],+ ],+ },],parse_patch(git("log", "-n", "1", "-p")))end@@ -537,6 +566,35 @@ class PrepareTest < Test::Unit::TestCase"+See [crate documentation](https://docs.rs/crate/parquet/#{@next_snapshot_version}) on available API."],],},+ {+ path: "rust/parquet_derive/Cargo.toml",+ hunks: [+ ["-version = \"#{@release_version}\"",+ "+version = \"#{@next_snapshot_version}\""],+ ["-parquet = { path = \"../parquet\", version = \"#{@release_version}\" }",+ "+parquet = { path = \"../parquet\", version = \"#{@next_snapshot_version}\" }"],+ ],+ },+ {+ path: "rust/parquet_derive/README.md",+ hunks: [+ ["-parquet = \"#{@release_version}\"",+ "-parquet_derive = \"#{@release_version}\"",+ "+parquet = \"#{@next_snapshot_version}\"",+ "+parquet_derive = \"#{@next_snapshot_version}\""],+ ],+ },+ {+ path: "rust/parquet_derive_test/Cargo.toml",+ hunks: [+ ["-version = \"#{@release_version}\"",+ "+version = \"#{@next_snapshot_version}\"",+ "-parquet = { path = \"../parquet\", version = \"#{@release_version}\" }",+ "-parquet_derive = { path = \"../parquet_derive\", version = \"#{@release_version}\" }",+ "+parquet = { path = \"../parquet\", version = \"#{@next_snapshot_version}\" }",+ "+parquet_derive = { path = \"../parquet_derive\", version = \"#{@next_snapshot_version}\" }"],+ ],+ },],parse_patch(git("log", "-n", "1", "-p")))enddiff --git a/dev/release/00-prepare.sh b/dev/release/00-prepare.shindex 1678c0228d..df5283e01f 100755--- a/dev/release/00-prepare.sh+++ b/dev/release/00-prepare.sh@@ -151,29 +151,17 @@ update_versions() {-e "s/^(arrow = .* version = )\".*\"(( .*)|(, features = .*))$/\\1\"${version}\"\\2/g" \-e "s/^(arrow-flight = .* version = )\".+\"( .*)/\\1\"${version}\"\\2/g" \-e "s/^(parquet = .* version = )\".*\"(( .*)|(, features = .*))$/\\1\"${version}\"\\2/g" \+ -e "s/^(parquet_derive = .* version = )\".*\"(( .*)|(, features = .*))$/\\1\"${version}\"\\2/g" \*/Cargo.tomlrm -f */Cargo.toml.bakgit add */Cargo.toml- # Update version number for parquet README- sed -i.bak -E -e \- "s/^parquet = \".+\"/parquet = \"${version}\"/g" \- parquet/README.md- sed -i.bak -E -e \- "s/docs.rs\/crate\/parquet\/.+\)/docs.rs\/crate\/parquet\/${version}\)/g" \- parquet/README.md- rm -f parquet/README.md.bak- git add parquet/README.md-- # Update version number for datafusion README- sed -i.bak -E -e \- "s/^datafusion = \".+\"/datafusion = \"${version}\"/g" \- datafusion/README.md- sed -i.bak -E -e \- "s/docs.rs\/crate\/datafusion\/.+\)/docs.rs\/crate\/datafusion\/${version}\)/g" \- datafusion/README.md- rm -f datafusion/README.md.bak- git add datafusion/README.md+ sed -i.bak -E \+ -e "s/^([^ ]+) = \".+\"/\\1 = \"${version}\"/g" \+ -e "s,docs\.rs/crate/([^/]+)/[^)]+,docs.rs/crate/\\1/${version},g" \+ */README.md+ rm -f */README.md.bak+ git add */README.mdcd -}diff --git a/rust/Cargo.toml b/rust/Cargo.tomlindex 0cb529fb69..459fe8fd4e 100644--- a/rust/Cargo.toml+++ b/rust/Cargo.toml@@ -19,6 +19,8 @@members = ["arrow","parquet",+ "parquet_derive",+ "parquet_derive_test","datafusion","arrow-flight","integration-testing",