Apache DataFusion SQL Query Engine
ARROW-6945: [Rust][Integration] Run rust integration tests
Neal Richardsonc40b07ed6d45
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.ymlindex 905ff01652..ead90ef8b1 100644--- a/.github/workflows/integration.yml+++ b/.github/workflows/integration.yml@@ -29,6 +29,7 @@ on:- 'cpp/**'- 'java/**'- 'format/**'+ - 'rust/**'pull_request:paths:- '.github/workflows/integration.yml'@@ -40,6 +41,7 @@ on:- 'cpp/**'- 'java/**'- 'format/**'+ - 'rust/**'env:DOCKER_BUILDKIT: 0diff --git a/ci/docker/conda-integration.dockerfile b/ci/docker/conda-integration.dockerfileindex 5672cb8def..088d93e392 100644--- a/ci/docker/conda-integration.dockerfile+++ b/ci/docker/conda-integration.dockerfile@@ -34,6 +34,8 @@ RUN conda install -q \openjdk=${jdk} && \conda clean --all+RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y+ENV GOROOT=/opt/go \GOBIN=/opt/go/bin \GOPATH=/go \diff --git a/ci/scripts/rust_build.sh b/ci/scripts/rust_build.shindex 67305cd8f8..7bbef28760 100755--- a/ci/scripts/rust_build.sh+++ b/ci/scripts/rust_build.sh@@ -20,19 +20,14 @@set -exsource_dir=${1}/rust-build_dir=${2}/rustexport ARROW_TEST_DATA=${arrow_dir}/testing/dataexport PARQUET_TEST_DATA=${arrow_dir}/cpp/submodules/parquet-testing/data-export CARGO_TARGET_DIR=${build_dir}export RUSTFLAGS="-D warnings"# show activated toolchainrustup show-# ensure that the build directory exists-mkdir -p ${build_dir}-pushd ${source_dir}# build entire projectdiff --git a/dev/archery/archery/cli.py b/dev/archery/archery/cli.pyindex 2622fbfb1a..7a947df133 100644--- a/dev/archery/archery/cli.py+++ b/dev/archery/archery/cli.py@@ -651,7 +651,7 @@ def integration(with_all=False, random_seed=12345, **args):gen_path = args['write_generated_json']- languages = ['cpp', 'java', 'js', 'go']+ languages = ['cpp', 'java', 'js', 'go', 'rust']enabled_languages = 0for lang in languages:diff --git a/dev/archery/archery/integration/datagen.py b/dev/archery/archery/integration/datagen.pyindex 7c0b57483b..6a23d0b09a 100644--- a/dev/archery/archery/integration/datagen.py+++ b/dev/archery/archery/integration/datagen.py@@ -1487,18 +1487,23 @@ def get_generated_json_files(tempdir=None, flight=False):file_objs = [generate_primitive_case([], name='primitive_no_batches'),- generate_primitive_case([17, 20], name='primitive'),- generate_primitive_case([0, 0, 0], name='primitive_zerolength'),+ generate_primitive_case([17, 20], name='primitive')+ .skip_category('Rust'),+ generate_primitive_case([0, 0, 0], name='primitive_zerolength')+ .skip_category('Rust'),generate_primitive_large_offsets_case([17, 20]).skip_category('Go')- .skip_category('JS'),+ .skip_category('JS')+ .skip_category('Rust'),generate_null_case([10, 0])+ .skip_category('Rust').skip_category('JS') # TODO(ARROW-7900).skip_category('Go'), # TODO(ARROW-7901)generate_null_trivial_case([0, 0])+ .skip_category('Rust').skip_category('JS') # TODO(ARROW-7900).skip_category('Go'), # TODO(ARROW-7901)@@ -1506,7 +1511,8 @@ def get_generated_json_files(tempdir=None, flight=False):.skip_category('Go') # TODO(ARROW-7948): Decimal + Go.skip_category('Rust'),- generate_datetime_case(),+ generate_datetime_case()+ .skip_category('Rust'),generate_interval_case().skip_category('JS') # TODO(ARROW-5239): Intervals + JS@@ -1559,7 +1565,8 @@ def get_generated_json_files(tempdir=None, flight=False):generate_nested_dictionary_case().skip_category('Go').skip_category('Java') # TODO(ARROW-7779)- .skip_category('JS'),+ .skip_category('JS')+ .skip_category('Rust'),generate_extension_case().skip_category('Go')@@ -1569,7 +1576,8 @@ def get_generated_json_files(tempdir=None, flight=False):if flight:file_objs.append(generate_primitive_case([24 * 1024],- name='large_batch'))+ name='large_batch')+ .skip_category('Rust'))generated_paths = []for file_obj in file_objs:diff --git a/docker-compose.yml b/docker-compose.ymlindex 9d838ef561..f90596b69c 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -1088,7 +1088,8 @@ services:ARROW_CPP_EXE_PATH: /build/cpp/debug# Running integration tests serially until ARROW-8176 resolvedcommand:- ["/arrow/ci/scripts/cpp_build.sh /arrow /build &&+ ["/arrow/ci/scripts/rust_build.sh /arrow /build &&+ /arrow/ci/scripts/cpp_build.sh /arrow /build &&/arrow/ci/scripts/go_build.sh /arrow &&/arrow/ci/scripts/java_build.sh /arrow /build &&/arrow/ci/scripts/js_build.sh /arrow /build &&