Skip to content

Apache DataFusion SQL Query Engine

ARROW-6821: [C++][Parquet] Do not require Thrift compiler when building (but still require library)

Neal Richardsonef5e71e3f370
diff --git a/ci/appveyor-cpp-build-mingw.bat b/ci/appveyor-cpp-build-mingw.bat
index 5d7dbb6ac8..36895bbb8e 100644
--- a/ci/appveyor-cpp-build-mingw.bat
+++ b/ci/appveyor-cpp-build-mingw.bat
@@ -49,6 +49,7 @@ cmake ^
-DARROW_PARQUET=ON ^
-DARROW_PYTHON=ON ^
-DARROW_USE_GLOG=OFF ^
+ -DARROW_VERBOSE_THIRDPARTY_BUILD=OFF ^
-DARROW_WITH_BROTLI=ON ^
-DARROW_WITH_BZ2=ON ^
-DARROW_WITH_LZ4=ON ^
diff --git a/ci/docker/cuda-10.0-cpp.dockerfile b/ci/docker/cuda-10.0-cpp.dockerfile
index aa49bd2a81..0697513d30 100644
--- a/ci/docker/cuda-10.0-cpp.dockerfile
+++ b/ci/docker/cuda-10.0-cpp.dockerfile
@@ -32,11 +32,9 @@ RUN apt-get update -y -q && \
RUN apt-get update -y -q && \
apt-get install -y -q --no-install-recommends \
autoconf \
- bison \
ca-certificates \
ccache \
cmake \
- flex \
g++ \
gcc \
git \
@@ -61,7 +59,6 @@ RUN apt-get update -y -q && \
protobuf-compiler \
python-minimal \
rapidjson-dev \
- thrift-compiler \
tzdata && \
apt-get clean && rm -rf /var/lib/apt/lists*
diff --git a/ci/docker/cuda-10.1-cpp.dockerfile b/ci/docker/cuda-10.1-cpp.dockerfile
index e56f781195..6e86ca97fc 100644
--- a/ci/docker/cuda-10.1-cpp.dockerfile
+++ b/ci/docker/cuda-10.1-cpp.dockerfile
@@ -32,11 +32,9 @@ RUN apt-get update -y -q && \
RUN apt-get update -y -q && \
apt-get install -y -q --no-install-recommends \
autoconf \
- bison \
ca-certificates \
ccache \
cmake \
- flex \
g++ \
gcc \
git \
@@ -61,7 +59,6 @@ RUN apt-get update -y -q && \
protobuf-compiler \
python-minimal \
rapidjson-dev \
- thrift-compiler \
tzdata && \
apt-get clean && rm -rf /var/lib/apt/lists*
diff --git a/ci/docker/cuda-9.1-cpp.dockerfile b/ci/docker/cuda-9.1-cpp.dockerfile
index 86e4d5c162..bf3242ea18 100644
--- a/ci/docker/cuda-9.1-cpp.dockerfile
+++ b/ci/docker/cuda-9.1-cpp.dockerfile
@@ -32,11 +32,9 @@ RUN apt-get update -y -q && \
RUN apt-get update -y -q && \
apt-get install -y -q --no-install-recommends \
autoconf \
- bison \
ca-certificates \
ccache \
cmake \
- flex \
g++ \
gcc \
gdb \
@@ -61,7 +59,6 @@ RUN apt-get update -y -q && \
protobuf-compiler \
python-minimal \
rapidjson-dev \
- thrift-compiler \
tzdata && \
apt-get clean && rm -rf /var/lib/apt/lists*
diff --git a/ci/docker/debian-10-cpp.dockerfile b/ci/docker/debian-10-cpp.dockerfile
index c188778d05..e51f482d84 100644
--- a/ci/docker/debian-10-cpp.dockerfile
+++ b/ci/docker/debian-10-cpp.dockerfile
@@ -52,7 +52,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
pkg-config \
protobuf-compiler \
rapidjson-dev \
- thrift-compiler \
tzdata \
zlib1g-dev \
wget && \
diff --git a/ci/docker/fedora-29-cpp.dockerfile b/ci/docker/fedora-29-cpp.dockerfile
index 806144a7c1..94adb5e776 100644
--- a/ci/docker/fedora-29-cpp.dockerfile
+++ b/ci/docker/fedora-29-cpp.dockerfile
@@ -22,7 +22,6 @@ FROM ${arch}/fedora:29
RUN dnf update -y && \
dnf install -y \
autoconf \
- bison \
boost-devel \
brotli-devel \
bzip2-devel \
@@ -30,7 +29,6 @@ RUN dnf update -y && \
clang-devel \
cmake \
flatbuffers-devel \
- flex \
java-openjdk-devel \
java-openjdk-headless \
gcc \
diff --git a/ci/docker/linux-apt-jni.dockerfile b/ci/docker/linux-apt-jni.dockerfile
index 7ce40535e0..234d582cc1 100644
--- a/ci/docker/linux-apt-jni.dockerfile
+++ b/ci/docker/linux-apt-jni.dockerfile
@@ -43,7 +43,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
pkg-config \
protobuf-compiler \
rapidjson-dev \
- thrift-compiler \
tzdata \
zlib1g-dev \
wget && \
diff --git a/ci/docker/ubuntu-14.04-cpp.dockerfile b/ci/docker/ubuntu-14.04-cpp.dockerfile
index 39ebacd413..5f24f9a353 100644
--- a/ci/docker/ubuntu-14.04-cpp.dockerfile
+++ b/ci/docker/ubuntu-14.04-cpp.dockerfile
@@ -25,10 +25,8 @@ RUN apt-get update -y -q && \
apt-get install -y -q --no-install-recommends wget software-properties-common && \
apt-get install -y -q --no-install-recommends \
autoconf \
- bison \
ca-certificates \
ccache \
- flex \
g++ \
gcc \
gdb \
diff --git a/ci/docker/ubuntu-16.04-cpp.dockerfile b/ci/docker/ubuntu-16.04-cpp.dockerfile
index 1c101d35e5..83e91d9c27 100644
--- a/ci/docker/ubuntu-16.04-cpp.dockerfile
+++ b/ci/docker/ubuntu-16.04-cpp.dockerfile
@@ -28,12 +28,10 @@ RUN apt-get update -y -q && \
apt-get update -y -q && \
apt-get install -y -q --no-install-recommends \
autoconf \
- bison \
ca-certificates \
ccache \
clang-7 \
cmake \
- flex \
g++ \
gcc \
gdb \
diff --git a/ci/docker/ubuntu-18.04-cpp.dockerfile b/ci/docker/ubuntu-18.04-cpp.dockerfile
index 790b2a51fb..92c75445e6 100644
--- a/ci/docker/ubuntu-18.04-cpp.dockerfile
+++ b/ci/docker/ubuntu-18.04-cpp.dockerfile
@@ -54,11 +54,9 @@ RUN wget -q -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
RUN apt-get update -y -q && \
apt-get install -y -q --no-install-recommends \
autoconf \
- bison \
ca-certificates \
ccache \
cmake \
- flex \
g++ \
gcc \
gdb \
@@ -82,7 +80,6 @@ RUN apt-get update -y -q && \
pkg-config \
protobuf-compiler \
rapidjson-dev \
- thrift-compiler \
tzdata && \
apt-get clean && \
rm -rf /var/lib/apt/lists*
diff --git a/ci/docker/ubuntu-18.04-r-sanitizer.dockerfile b/ci/docker/ubuntu-18.04-r-sanitizer.dockerfile
index 507a05376c..473f39092c 100644
--- a/ci/docker/ubuntu-18.04-r-sanitizer.dockerfile
+++ b/ci/docker/ubuntu-18.04-r-sanitizer.dockerfile
@@ -21,11 +21,9 @@ FROM wch1/r-debug:latest
RUN apt-get update -y -q && \
apt-get install -y -q --no-install-recommends \
autoconf \
- bison \
ca-certificates \
ccache \
cmake \
- flex \
g++ \
gcc \
git \
@@ -47,7 +45,6 @@ RUN apt-get update -y -q && \
ninja-build \
pkg-config \
rapidjson-dev \
- thrift-compiler \
tzdata && \
locale-gen en_US.UTF-8 && \
apt-get clean && rm -rf /var/lib/apt/lists*
diff --git a/dev/release/rat_exclude_files.txt b/dev/release/rat_exclude_files.txt
index ea54278ede..28a8960ab0 100644
--- a/dev/release/rat_exclude_files.txt
+++ b/dev/release/rat_exclude_files.txt
@@ -24,6 +24,10 @@ cpp/cmake_modules/SnappyCMakeLists.txt
cpp/cmake_modules/SnappyConfig.h
cpp/examples/parquet/parquet-arrow/cmake_modules/FindArrow.cmake
cpp/src/parquet/.parquetcppversion
+cpp/src/generated/parquet_constants.cpp
+cpp/src/generated/parquet_constants.h
+cpp/src/generated/parquet_types.cpp
+cpp/src/generated/parquet_types.h
cpp/src/plasma/thirdparty/ae/ae.c
cpp/src/plasma/thirdparty/ae/ae.h
cpp/src/plasma/thirdparty/ae/ae_epoll.c