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
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
package org.apache.gluten.utils

import org.apache.gluten.jni.JniLibLoader
import org.apache.gluten.spi.SharedLibraryLoader
import org.apache.gluten.spi.{SharedLibraryLoader => SpiSharedLibraryLoader}
import org.apache.gluten.utils.MySharedLibraryLoader.LOADED

import java.util.concurrent.atomic.AtomicBoolean

class MySharedLibraryLoader extends SharedLibraryLoader {
class MySharedLibraryLoader extends SpiSharedLibraryLoader {
override def accepts(osName: String, osVersion: String): Boolean = {
osName == "My OS" && osVersion == "1.0"
}
Expand Down
167 changes: 0 additions & 167 deletions cpp/CMake/FindThrift.cmake

This file was deleted.

14 changes: 14 additions & 0 deletions cpp/velox/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,20 @@ if(ENABLE_GPU)
PRIVATE ${VELOX_BUILD_PATH}/_deps/cudf-build/libcudf.so)
endif()

find_package(wangle REQUIRED)
# 查找 FBThrift
find_package(FBThrift REQUIRED)

# 链接 FBThrift 库
target_link_libraries(velox PUBLIC
FBThrift::thriftcpp2
FBThrift::thriftprotocol
)

target_link_libraries(
velox
PUBLIC ${VELOX_BUILD_PATH}/velox/dwio/parquet/thrift/libvelox_dwio_parquet_thrift_raw.a)

add_custom_command(
TARGET velox
POST_BUILD
Expand Down
2 changes: 1 addition & 1 deletion dev/buildbundle-veloxbe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ check_supported

# SPARK_VERSION is defined in builddeps-veloxbe.sh
if [ "$SPARK_VERSION" = "ALL" ]; then
for spark_version in 3.2 3.3 3.4 3.5 4.0
for spark_version in 3.5
do
build_for_spark $spark_version
done
Expand Down
8 changes: 6 additions & 2 deletions dev/vcpkg/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@
"protobuf",
"benchmark",
"icu",
"thrift",
"fizz",
"wangle",
"mvfst",
{ "name": "fbthrift", "features": ["cpp2"]},
"libstemmer",
"geos"
]
Expand Down Expand Up @@ -113,6 +116,7 @@
},
"overrides": [
{ "name": "fmt", "version": "10.1.1" },
{ "name": "xsimd", "version": "10.0.0" }
{ "name": "xsimd", "version": "10.0.0" },
{ "name": "fbthrift", "version-date": "2025-09-15"}
]
}
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/oap-project/velox.git
VELOX_BRANCH=2025_10_09
VELOX_REPO=https://github.com/JkSelf/velox.git
VELOX_BRANCH=fb-thrift
VELOX_HOME=""
RUN_SETUP_SCRIPT=ON
VELOX_ENHANCED_REPO=https://github.com/IBM/velox.git
Expand Down