Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
167 changes: 0 additions & 167 deletions cpp/CMake/FindThrift.cmake

This file was deleted.

6 changes: 6 additions & 0 deletions cpp/velox/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,12 @@ if(ENABLE_GPU)
facebook::velox::velox_cudf_expression cudf::cudf velox_curl)
endif()

import_library(thriftprotocol ${VELOX_HOME}/deps-download/fbthrift/_build/lib/libthriftprotocol.a)
import_library(thriftcpp2 ${VELOX_HOME}/deps-download/fbthrift/_build/lib/libthriftcpp2.a)
import_library(thriftmetadata ${VELOX_HOME}/deps-download/fbthrift/_build/lib/libthriftmetadata.a)
import_library(facebook::velox::dwio::parquet::thrift::raw ${VELOX_BUILD_PATH}/velox/dwio/parquet/thrift/libvelox_dwio_parquet_thrift_raw.a)
target_link_libraries(velox PRIVATE thriftprotocol thriftcpp2 thriftmetadata facebook::velox::dwio::parquet::thrift::raw)

add_custom_command(
TARGET velox
POST_BUILD
Expand Down
8 changes: 1 addition & 7 deletions dev/build-arrow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ function build_arrow_cpp() {
-DARROW_FILESYSTEM=ON \
-DARROW_PROTOBUF_USE_SHARED=OFF \
-DARROW_DEPENDENCY_USE_SHARED=OFF \
-DARROW_DEPENDENCY_SOURCE=BUNDLED \
-DARROW_WITH_THRIFT=ON \
-DARROW_WITH_THRIFT=OFF \
-DARROW_WITH_LZ4=ON \
-DARROW_WITH_SNAPPY=ON \
-DARROW_WITH_ZLIB=${ARROW_WITH_ZLIB} \
Expand All @@ -68,11 +67,6 @@ function build_arrow_cpp() {
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DARROW_BUILD_SHARED=OFF \
-DARROW_BUILD_STATIC=ON

# Install thrift.
cd _build/thrift_ep-prefix/src/thrift_ep-build
${SUDO} cmake --install ./ --prefix "${INSTALL_PREFIX}"/
popd
}

function build_arrow_java() {
Expand Down
2 changes: 1 addition & 1 deletion dev/ci-velox-buildstatic-centos-7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ set -e
source /opt/rh/devtoolset-11/enable
source /opt/rh/rh-git227/enable
export NUM_THREADS=4
./dev/builddeps-veloxbe.sh --enable_vcpkg=ON --build_arrow=OFF --build_tests=OFF --build_benchmarks=OFF \
./dev/builddeps-veloxbe.sh --enable_vcpkg=ON --build_arrow=ON --build_tests=OFF --build_benchmarks=OFF \
--build_examples=OFF --enable_s3=ON --enable_gcs=ON --enable_hdfs=ON --enable_abfs=ON
8 changes: 6 additions & 2 deletions dev/vcpkg/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@
"protobuf",
"benchmark",
"icu",
"thrift",
"fizz",
"wangle",
"mvfst",
{ "name": "fbthrift", "features": ["cpp2"]},
"libstemmer",
"geos",
"grpc"
Expand Down Expand Up @@ -114,6 +117,7 @@
{ "name": "glog", "version": "0.6.0"},
{ "name": "gflags", "version": "2.2.2"},
{ "name": "azure-identity-cpp", "version": "1.11.0"},
{ "name": "grpc", "version": "1.51.1"}
{ "name": "grpc", "version": "1.51.1"},
{ "name": "fbthrift", "version-date": "2026.01.05.00"}
]
}
4 changes: 2 additions & 2 deletions ep/build-velox/src/get-velox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
set -exu

CURRENT_DIR=$(cd "$(dirname "$BASH_SOURCE")"; pwd)
VELOX_REPO=https://github.com/IBM/velox.git
VELOX_BRANCH=dft-2026_01_30
VELOX_REPO=https://github.com/rui-mo/velox.git
VELOX_BRANCH=test_fb
VELOX_ENHANCED_BRANCH=ibm-2026_01_30
VELOX_HOME=""
RUN_SETUP_SCRIPT=ON
Expand Down
68 changes: 40 additions & 28 deletions ep/build-velox/src/modify_arrow.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ index d56f6a36d..9b4088df9 100644
+ list(APPEND ARROW_STATIC_INSTALL_INTERFACE_LIBS orc::orc)
endif()
endif()

@@ -823,9 +822,6 @@ if(ARROW_WITH_OPENTELEMETRY)
opentelemetry-cpp::ostream_span_exporter
opentelemetry-cpp::otlp_http_exporter)
Expand All @@ -21,11 +21,11 @@ index d56f6a36d..9b4088df9 100644
- endif()
list(APPEND ARROW_STATIC_INSTALL_INTERFACE_LIBS CURL::libcurl)
endif()

@@ -860,6 +856,14 @@ if(ARROW_USE_XSIMD)
list(APPEND ARROW_STATIC_LINK_LIBS ${ARROW_XSIMD})
endif()

+# This should be done after if(ARROW_ORC) and if(ARROW_WITH_OPENTELEMETRY)
+# because they depend on Protobuf.
+if(ARROW_WITH_PROTOBUF)
Expand Down Expand Up @@ -69,11 +69,36 @@ index a24f272fe..e25f78c85 100644
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/cpp/thirdparty/versions.txt b/cpp/thirdparty/versions.txt
index e9df0c8d7..b92002c75 100644
--- a/cpp/thirdparty/versions.txt
+++ b/cpp/thirdparty/versions.txt
@@ -107,8 +107,8 @@ ARROW_SUBSTRAIT_BUILD_VERSION=v0.27.0
ARROW_SUBSTRAIT_BUILD_SHA256_CHECKSUM=4ed375f69d972a57fdc5ec406c17003a111831d8640d3f1733eccd4b3ff45628
ARROW_S2N_TLS_BUILD_VERSION=v1.3.35
ARROW_S2N_TLS_BUILD_SHA256_CHECKSUM=9d32b26e6bfcc058d98248bf8fc231537e347395dd89cf62bb432b55c5da990d
-ARROW_THRIFT_BUILD_VERSION=0.16.0
-ARROW_THRIFT_BUILD_SHA256_CHECKSUM=f460b5c1ca30d8918ff95ea3eb6291b3951cf518553566088f3f2be8981f6209
+ARROW_THRIFT_BUILD_VERSION=0.21.0
+ARROW_THRIFT_BUILD_SHA256_CHECKSUM=9a24f3eba9a4ca493602226c16d8c228037db3b9291c6fc4019bfe3bd39fc67c
ARROW_UCX_BUILD_VERSION=1.12.1
ARROW_UCX_BUILD_SHA256_CHECKSUM=9bef31aed0e28bf1973d28d74d9ac4f8926c43ca3b7010bd22a084e164e31b71
ARROW_UTF8PROC_BUILD_VERSION=v2.7.0
diff --git a/java/dataset/src/main/cpp/jni_wrapper.cc b/java/dataset/src/main/cpp/jni_wrapper.cc
index d2d976677..d7dd01ecd 100644
index d2d976677..8d7dafd84 100644
--- a/java/dataset/src/main/cpp/jni_wrapper.cc
+++ b/java/dataset/src/main/cpp/jni_wrapper.cc
@@ -126,20 +126,14 @@ class ReserveFromJava : public arrow::dataset::jni::ReservationListener {
@@ -27,7 +27,9 @@
#include "arrow/dataset/file_base.h"
#include "arrow/filesystem/localfs.h"
#include "arrow/filesystem/path_util.h"
+#ifdef ARROW_S3
#include "arrow/filesystem/s3fs.h"
+#endif
#include "arrow/engine/substrait/util.h"
#include "arrow/engine/substrait/serde.h"
#include "arrow/engine/substrait/relation.h"
@@ -126,20 +128,14 @@ class ReserveFromJava : public arrow::dataset::jni::ReservationListener {
: vm_(vm), java_reservation_listener_(java_reservation_listener) {}

arrow::Status OnReservation(int64_t size) override {
Expand All @@ -96,6 +121,16 @@ index d2d976677..d7dd01ecd 100644
env->CallObjectMethod(java_reservation_listener_, unreserve_memory_method, size);
RETURN_NOT_OK(arrow::dataset::jni::CheckException(env));
return arrow::Status::OK();
@@ -622,7 +618,9 @@ JNIEXPORT void JNICALL Java_org_apache_arrow_dataset_jni_JniWrapper_releaseBuffe
JNIEXPORT void JNICALL Java_org_apache_arrow_dataset_jni_JniWrapper_ensureS3Finalized(
JNIEnv* env, jobject) {
JNI_METHOD_START
+#ifdef ARROW_S3
JniAssertOkOrThrow(arrow::fs::EnsureS3Finalized());
+#endif
JNI_METHOD_END()
}

diff --git a/java/pom.xml b/java/pom.xml
index a8328576b..57f282c6c 100644
--- a/java/pom.xml
Expand All @@ -110,26 +145,3 @@ index a8328576b..57f282c6c 100644
-DARROW_SUBSTRAIT=${ARROW_DATASET}
-DARROW_USE_CCACHE=ON
-DCMAKE_BUILD_TYPE=Release
diff --git a/java/dataset/src/main/cpp/jni_wrapper.cc b/java/dataset/src/main/cpp/jni_wrapper.cc
index d2d976677..eb4b6d1d2 100644
--- a/java/dataset/src/main/cpp/jni_wrapper.cc
+++ b/java/dataset/src/main/cpp/jni_wrapper.cc
@@ -27,7 +27,9 @@
#include "arrow/dataset/file_base.h"
#include "arrow/filesystem/localfs.h"
#include "arrow/filesystem/path_util.h"
+#ifdef ARROW_S3
#include "arrow/filesystem/s3fs.h"
+#endif
#include "arrow/engine/substrait/util.h"
#include "arrow/engine/substrait/serde.h"
#include "arrow/engine/substrait/relation.h"
@@ -622,7 +624,9 @@ JNIEXPORT void JNICALL Java_org_apache_arrow_dataset_jni_JniWrapper_releaseBuffe
JNIEXPORT void JNICALL Java_org_apache_arrow_dataset_jni_JniWrapper_ensureS3Finalized(
JNIEnv* env, jobject) {
JNI_METHOD_START
+#ifdef ARROW_S3
JniAssertOkOrThrow(arrow::fs::EnsureS3Finalized());
+#endif
JNI_METHOD_END()
}