Skip to content

Commit

Permalink
Disable ORC on Ubuntu 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jul 4, 2024
1 parent de3363a commit 52f14f4
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions dev/release/verify-release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,19 @@ test_and_install_cpp() {
ARROW_CMAKE_OPTIONS="${ARROW_CMAKE_OPTIONS:-} -G ${CMAKE_GENERATOR}"
fi

if [ -z "${ARROW_ORC}" ]; then
cmake_version=$(cmake --version | \
grep \
--extended-regexp \
--only-matching \
'[0-9]+\.[0-9]+')
if expr ${cmake_version} '>=' 3.22; then
ARROW_ORC=ON
else
ARROW_ORC=OFF
fi
fi

local ARROW_BUILD_INTEGRATION=OFF
local ARROW_BUILD_TESTS=OFF
if [ ${TEST_INTEGRATION_CPP} -gt 0 ]; then
Expand Down Expand Up @@ -714,7 +727,7 @@ test_and_install_cpp() {
-DARROW_GCS=${ARROW_GCS} \
-DARROW_HDFS=ON \
-DARROW_JSON=ON \
-DARROW_ORC=ON \
-DARROW_ORC=${ARROW_ORC} \
-DARROW_PARQUET=ON \
-DARROW_SUBSTRAIT=ON \
-DARROW_S3=${ARROW_S3} \
Expand Down Expand Up @@ -766,7 +779,6 @@ test_python() {
export PYARROW_PARALLEL=$NPROC
export PYARROW_WITH_DATASET=1
export PYARROW_WITH_HDFS=1
export PYARROW_WITH_ORC=1
export PYARROW_WITH_PARQUET=1
export PYARROW_WITH_PARQUET_ENCRYPTION=1
if [ "${ARROW_CUDA}" = "ON" ]; then
Expand All @@ -781,6 +793,9 @@ test_python() {
if [ "${ARROW_GCS}" = "ON" ]; then
export PYARROW_WITH_GCS=1
fi
if [ "${ARROW_ORC}" = "ON" ]; then
export PYARROW_WITH_ORC=1
fi
if [ "${ARROW_S3}" = "ON" ]; then
export PYARROW_WITH_S3=1
fi
Expand All @@ -798,7 +813,6 @@ import pyarrow.csv
import pyarrow.dataset
import pyarrow.fs
import pyarrow.json
import pyarrow.orc
import pyarrow.parquet
"
if [ "${ARROW_CUDA}" == "ON" ]; then
Expand All @@ -813,6 +827,9 @@ import pyarrow.parquet
if [ "${ARROW_GCS}" == "ON" ]; then
python -c "import pyarrow._gcsfs"
fi
if [ "${ARROW_ORC}" == "ON" ]; then
python -c "import pyarrow.orc"
fi
if [ "${ARROW_S3}" == "ON" ]; then
python -c "import pyarrow._s3fs"
fi
Expand Down Expand Up @@ -1316,6 +1333,7 @@ fi
: ${ARROW_FLIGHT:=ON}
: ${ARROW_GANDIVA:=ON}
: ${ARROW_GCS:=OFF}
: ${ARROW_ORC:=}
: ${ARROW_S3:=OFF}

TEST_SUCCESS=no
Expand Down

0 comments on commit 52f14f4

Please sign in to comment.