Skip to content
Merged
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
25 changes: 0 additions & 25 deletions be/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -181,27 +181,6 @@ if (DEFINED ENV{PAIMON_HOME} AND NOT PAIMON_HOME)
set(PAIMON_HOME "$ENV{PAIMON_HOME}" CACHE PATH "" FORCE)
endif()

option(BUILD_RUST_READERS "Build Rust-based format readers (Lance, etc.)" OFF)
if (DEFINED ENV{BUILD_RUST_READERS})
set(BUILD_RUST_READERS "$ENV{BUILD_RUST_READERS}" CACHE BOOL "" FORCE)
endif()
# Auto-enable if pre-built Rust library exists (from zigbuild or manylinux2014)
if (NOT BUILD_RUST_READERS)
if (EXISTS "${SRC_DIR}/rust/doris-native/target/x86_64-unknown-linux-gnu/release/libdoris_ffi.a"
OR EXISTS "${SRC_DIR}/rust/doris-native/target/release/libdoris_ffi.a")
set(BUILD_RUST_READERS ON)
message(STATUS "Auto-enabling BUILD_RUST_READERS: pre-built library found")
endif()
endif()
if (BUILD_RUST_READERS)
# rust.cmake detects pre-built .a or builds via Corrosion.
# If neither exists, it sets BUILD_RUST_READERS=OFF and returns.
include(cmake/rust.cmake)
endif()
if (BUILD_RUST_READERS)
add_definitions(-DBUILD_RUST_READERS)
endif()

set(CMAKE_SKIP_RPATH TRUE)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_STATIC_RUNTIME ON)
Expand Down Expand Up @@ -736,10 +715,6 @@ if (ENABLE_PAIMON_CPP)
set(DORIS_DEPENDENCIES ${DORIS_DEPENDENCIES} tbb_paimon)
endif()

if (BUILD_RUST_READERS)
set(DORIS_DEPENDENCIES ${DORIS_DEPENDENCIES} doris_ffi_lib)
endif()

set(DORIS_DEPENDENCIES ${DORIS_DEPENDENCIES} ${WL_END_GROUP})

# Add all external dependencies. They should come after the palo libs.
Expand Down
81 changes: 0 additions & 81 deletions be/cmake/rust.cmake

This file was deleted.

13 changes: 0 additions & 13 deletions be/src/exec/scan/file_scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@
#include "format/table/transactional_hive_reader.h"
#include "format/table/trino_connector_jni_reader.h"
#include "format/text/text_reader.h"
#ifdef BUILD_RUST_READERS
#include "format/lance/lance_rust_reader.h"
#endif
#include "io/cache/block_file_cache_profile.h"
#include "load/group_commit/wal/wal_reader.h"
#include "runtime/descriptors.h"
Expand Down Expand Up @@ -1269,16 +1266,6 @@ Status FileScanner::_get_next_reader() {
}
break;
}
#ifdef BUILD_RUST_READERS
case TFileFormatType::FORMAT_LANCE: {
auto lance_reader = LanceRustReader::create_unique(_file_slot_descs, _state, _profile,
range, _params);
init_status = lance_reader->init_reader();
_cur_reader = std::move(lance_reader);
need_to_get_parsed_schema = true;
break;
}
#endif
case TFileFormatType::FORMAT_ES_HTTP: {
_cur_reader = EsHttpReader::create_unique(_file_slot_descs, _state, _profile, range,
*_params, _real_tuple_desc);
Expand Down
6 changes: 0 additions & 6 deletions be/src/format/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ file(GLOB_RECURSE FORMAT_V2_SRC_FILES CONFIGURE_DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/../format_v2/*.cpp)
list(APPEND SRC_FILES ${FORMAT_V2_SRC_FILES})

# Lance reader requires Rust static library (BUILD_RUST_READERS=ON)
if (NOT BUILD_RUST_READERS)
file(GLOB_RECURSE LANCE_FILES CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/lance/*.cpp)
list(REMOVE_ITEM SRC_FILES ${LANCE_FILES})
endif()

add_library(Format STATIC ${SRC_FILES})

pch_reuse(Format)
84 changes: 0 additions & 84 deletions be/src/format/lance/lance_ffi.h

This file was deleted.

Loading
Loading