Apache DataFusion SQL Query Engine
ARROW-8797: [C++] Read RecordBatch in a different endian
Kazuaki Ishizaki49102e850dd6
diff --git a/ci/scripts/integration_arrow.sh b/ci/scripts/integration_arrow.shindex abd53759d8..aa23e5b7c1 100755--- a/ci/scripts/integration_arrow.sh+++ b/ci/scripts/integration_arrow.sh@@ -30,4 +30,6 @@ pip install -e $arrow_dir/dev/archeryarchery integration --with-all --run-flight \--gold-dirs=$gold_dir/0.14.1 \--gold-dirs=$gold_dir/0.17.1 \+ --gold-dirs=$gold_dir/1.0.0-bigendian \+ --gold-dirs=$gold_dir/1.0.0-littleendian \--gold-dirs=$gold_dir/2.0.0-compression \diff --git a/dev/archery/archery/integration/runner.py b/dev/archery/archery/integration/runner.pyindex 2fe23a3b20..95394cdd37 100644--- a/dev/archery/archery/integration/runner.py+++ b/dev/archery/archery/integration/runner.py@@ -128,6 +128,11 @@ class IntegrationRunner(object):skip = set()if name == 'union' and prefix == '0.17.1':skip.add("Java")+ if prefix == '1.0.0-bigendian' or prefix == '1.0.0-littleendian':+ skip.add("Go")+ skip.add("Java")+ skip.add("JS")+ skip.add("Rust")if prefix == '2.0.0-compression':skip.add("Go")skip.add("Java")diff --git a/dev/archery/generate_files_for_endian_test.sh b/dev/archery/generate_files_for_endian_test.shnew file mode 100755index 0000000000..54019ea570--- /dev/null+++ b/dev/archery/generate_files_for_endian_test.sh@@ -0,0 +1,43 @@+#!/bin/bash+# 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.++# This script generates json and arrow files of each type (e.g. primitive) for integration endian test+# Usage: generate_files_for_endian_test.sh+# ARROW_CPP_EXE_PATH : where Arrow C++ binaries can be found+# TMP_DIR : where files will be generated++set -e++: ${ARROW_CPP_EXE_PATH:=/arrow/cpp/build/debug/}+: ${TMP_DIR:=/tmp/arrow}++json_dir=$TMP_DIR/arrow.$$+mkdir -p $json_dir++archery integration --stop-on-error --with-cpp=1 --tempdir=$json_dir++for f in $json_dir/*.json ; do+ $ARROW_CPP_EXE_PATH/arrow-json-integration-test -mode JSON_TO_ARROW -json $f -arrow ${f%.*}.arrow_file -integration true ;+done+for f in $json_dir/*.arrow_file ; do+ $ARROW_CPP_EXE_PATH/arrow-file-to-stream $f > ${f%.*}.stream;+done+for f in $json_dir/*.json ; do+ gzip $f ;+done+echo "The files are under $json_dir"