Skip to content

Commit 131b092

Browse files
zjw1111lucasfanglxy-9602lszskye
authored
fix: sync missing changes after repository migration (#154)
* fix(build): make package config relocatable (#306) * fix: fix thread-safe problem for file store path factory (#323) * feat(lumina): support null values in vector column during index building (#310) * feat: add CreateReader api with field_name & index_type (#391) * test: add tests for executor (#396) * fix: fix IsThreadSafe() in UnionGlobalIndexReader (#395) * fix: release global index writer before reader to avoid mem issue when write index failed (#398) * fix: complete undefined shift fixes from #308 Migrate the two remaining hunks from alibaba/paimon-cpp@620adbe; the other hunks are already present in Apache. * chore: remove remaining Lance references * feat: remove support for FLOAT/DOUBLE type partition field (#333) * refactor: remove unused path-based reader builder --------- Co-authored-by: Yonghao Fang <yonghao.fyh@alibaba-inc.com> Co-authored-by: lxy <38709059+lxy-9602@users.noreply.github.com> Co-authored-by: lszskye <57179283+lszskye@users.noreply.github.com>
1 parent 2e94a8f commit 131b092

51 files changed

Lines changed: 822 additions & 601 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,12 @@ endif()
7070
if(PAIMON_USE_CXX11_ABI)
7171
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=1)
7272
else()
73-
# lance and lumina are provided in so file, cannot be recompiled with C++11 ABI off.
74-
if(PAIMON_ENABLE_LANCE)
75-
message(FATAL_ERROR "Lance cannot be enabled with C++11 ABI off")
76-
endif()
73+
# Lumina is provided as a shared library and cannot be recompiled with C++11 ABI off.
7774
if(PAIMON_ENABLE_LUMINA)
7875
message(FATAL_ERROR "Lumina cannot be enabled with C++11 ABI off")
7976
endif()
8077
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
8178
endif()
82-
if(PAIMON_ENABLE_LANCE)
83-
add_definitions(-DPAIMON_ENABLE_LANCE)
84-
endif()
8579
if(PAIMON_ENABLE_LUMINA)
8680
add_definitions(-DPAIMON_ENABLE_LUMINA)
8781
endif()
@@ -100,9 +94,9 @@ set(PAIMON_SOURCE_DIR ${PROJECT_SOURCE_DIR})
10094
set(PAIMON_BINARY_DIR ${PROJECT_BINARY_DIR})
10195
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules")
10296
set(BUILD_SUPPORT_DIR "${CMAKE_SOURCE_DIR}/build_support")
103-
set(PAIMON_CMAKE_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
10497

10598
include(GNUInstallDirs)
99+
set(PAIMON_CMAKE_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/Paimon")
106100
include(DefineOptions)
107101

108102
if(PAIMON_OPTIONAL_INSTALL)
@@ -292,13 +286,6 @@ set(PAIMON_SHARED_PRIVATE_LINK_LIBS ${PAIMON_STATIC_LINK_LIBS})
292286
add_subdirectory(third_party/roaring_bitmap EXCLUDE_FROM_ALL)
293287
add_subdirectory(third_party/xxhash EXCLUDE_FROM_ALL)
294288
295-
if(PAIMON_ENABLE_LANCE)
296-
add_subdirectory(third_party/lance EXCLUDE_FROM_ALL)
297-
link_directories(third_party/lance/lance_lib/target/release)
298-
install(FILES ${PROJECT_SOURCE_DIR}/third_party/lance/lance_lib/target/release/liblance_lib_rc.so
299-
DESTINATION ${CMAKE_INSTALL_LIBDIR})
300-
endif()
301-
302289
list(APPEND PAIMON_LINK_LIBS ${CMAKE_DL_LIBS})
303290
list(APPEND PAIMON_SHARED_INSTALL_INTERFACE_LIBS ${CMAKE_DL_LIBS})
304291
@@ -330,10 +317,6 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
330317
include_directories("${CMAKE_SOURCE_DIR}/third_party/roaring_bitmap")
331318
include_directories("${CMAKE_SOURCE_DIR}/third_party/xxhash")
332319
333-
if(PAIMON_ENABLE_LANCE)
334-
include_directories("${CMAKE_SOURCE_DIR}/third_party/lance")
335-
endif()
336-
337320
include_directories(SYSTEM ${ARROW_INCLUDE_DIR})
338321
include_directories(SYSTEM ${TBB_INCLUDE_DIR})
339322
@@ -383,11 +366,6 @@ if(PAIMON_BUILD_TESTS)
383366
paimon_blob_file_format_shared
384367
"-Wl,--as-needed")
385368
386-
if(PAIMON_ENABLE_LANCE)
387-
list(APPEND TEST_STATIC_LINK_LIBS "-Wl,--no-as-needed")
388-
list(APPEND TEST_STATIC_LINK_LIBS paimon_lance_file_format_shared)
389-
list(APPEND TEST_STATIC_LINK_LIBS "-Wl,--as-needed")
390-
endif()
391369
if(PAIMON_ENABLE_ORC)
392370
list(APPEND TEST_STATIC_LINK_LIBS "-Wl,--no-as-needed")
393371
list(APPEND TEST_STATIC_LINK_LIBS paimon_orc_file_format_shared)
@@ -425,11 +403,11 @@ write_basic_package_version_file(
425403
426404
configure_package_config_file("${CMAKE_CURRENT_SOURCE_DIR}/PaimonConfig.cmake.in"
427405
"${CMAKE_CURRENT_BINARY_DIR}/PaimonConfig.cmake"
428-
INSTALL_DESTINATION lib/cmake/Paimon)
406+
INSTALL_DESTINATION ${PAIMON_CMAKE_INSTALL_DIR})
429407
430408
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/PaimonConfig.cmake"
431409
"${CMAKE_CURRENT_BINARY_DIR}/PaimonConfigVersion.cmake"
432-
DESTINATION lib/cmake/Paimon)
410+
DESTINATION ${PAIMON_CMAKE_INSTALL_DIR})
433411
434412
config_summary_message()
435413
@@ -442,13 +420,14 @@ add_subdirectory(src/paimon/format/blob)
442420
add_subdirectory(src/paimon/format/orc)
443421
add_subdirectory(src/paimon/format/parquet)
444422
add_subdirectory(src/paimon/format/avro)
445-
if(PAIMON_ENABLE_LANCE)
446-
add_subdirectory(src/paimon/format/lance)
447-
endif()
448423
if(PAIMON_ENABLE_LUMINA)
449424
add_subdirectory(src/paimon/global_index/lumina)
450425
endif()
451426
add_subdirectory(src/paimon/global_index/lucene)
452427
add_subdirectory(src/paimon/testing/mock)
453428
add_subdirectory(src/paimon/testing/utils)
454429
add_subdirectory(test/inte)
430+
431+
install(EXPORT PaimonTargets
432+
NAMESPACE Paimon::
433+
DESTINATION ${PAIMON_CMAKE_INSTALL_DIR})

PaimonConfig.cmake.in

Lines changed: 3 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -14,134 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
# Main library
18-
add_library(paimon_shared SHARED IMPORTED)
19-
set_target_properties(paimon_shared PROPERTIES
20-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon.so"
21-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
22-
)
23-
add_library(paimon_static STATIC IMPORTED)
24-
set_target_properties(paimon_static PROPERTIES
25-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon.a"
26-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
27-
)
17+
@PACKAGE_INIT@
2818

29-
# paimon_parquet_file_format
30-
add_library(paimon_parquet_file_format_shared SHARED IMPORTED)
31-
set_target_properties(paimon_parquet_file_format_shared PROPERTIES
32-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_parquet_file_format.so"
33-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
34-
)
35-
add_library(paimon_parquet_file_format_static STATIC IMPORTED)
36-
set_target_properties(paimon_parquet_file_format_static PROPERTIES
37-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_parquet_file_format.a"
38-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
39-
)
19+
include("${CMAKE_CURRENT_LIST_DIR}/PaimonTargets.cmake")
4020

41-
# paimon_orc_file_format
42-
add_library(paimon_orc_file_format_shared SHARED IMPORTED)
43-
set_target_properties(paimon_orc_file_format_shared PROPERTIES
44-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_orc_file_format.so"
45-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
46-
)
47-
add_library(paimon_orc_file_format_static STATIC IMPORTED)
48-
set_target_properties(paimon_orc_file_format_static PROPERTIES
49-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_orc_file_format.a"
50-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
51-
)
52-
53-
# paimon_local_file_system
54-
add_library(paimon_local_file_system_shared SHARED IMPORTED)
55-
set_target_properties(paimon_local_file_system_shared PROPERTIES
56-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_local_file_system.so"
57-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
58-
)
59-
add_library(paimon_local_file_system_static STATIC IMPORTED)
60-
set_target_properties(paimon_local_file_system_static PROPERTIES
61-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_local_file_system.a"
62-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
63-
)
64-
65-
# paimon_avro_file_format
66-
add_library(paimon_avro_file_format_shared SHARED IMPORTED)
67-
set_target_properties(paimon_avro_file_format_shared PROPERTIES
68-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_avro_file_format.so"
69-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
70-
)
71-
add_library(paimon_avro_file_format_static STATIC IMPORTED)
72-
set_target_properties(paimon_avro_file_format_static PROPERTIES
73-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_avro_file_format.a"
74-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
75-
)
76-
77-
# paimon_blob_file_format
78-
add_library(paimon_blob_file_format_shared SHARED IMPORTED)
79-
set_target_properties(paimon_blob_file_format_shared PROPERTIES
80-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_blob_file_format.so"
81-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
82-
)
83-
add_library(paimon_blob_file_format_static STATIC IMPORTED)
84-
set_target_properties(paimon_blob_file_format_static PROPERTIES
85-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_blob_file_format.a"
86-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
87-
)
88-
89-
# paimon_file_index
90-
add_library(paimon_file_index_shared SHARED IMPORTED)
91-
set_target_properties(paimon_file_index_shared PROPERTIES
92-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_file_index.so"
93-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
94-
)
95-
add_library(paimon_file_index_static STATIC IMPORTED)
96-
set_target_properties(paimon_file_index_static PROPERTIES
97-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_file_index.a"
98-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
99-
)
100-
101-
# paimon_global_index
102-
add_library(paimon_global_index_shared SHARED IMPORTED)
103-
set_target_properties(paimon_global_index_shared PROPERTIES
104-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_global_index.so"
105-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
106-
)
107-
add_library(paimon_global_index_static STATIC IMPORTED)
108-
set_target_properties(paimon_global_index_static PROPERTIES
109-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_global_index.a"
110-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
111-
)
112-
113-
# paimon_jindo_file_system
114-
add_library(paimon_jindo_file_system_shared SHARED IMPORTED)
115-
set_target_properties(paimon_jindo_file_system_shared PROPERTIES
116-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_jindo_file_system.so"
117-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
118-
)
119-
add_library(paimon_jindo_file_system_static STATIC IMPORTED)
120-
set_target_properties(paimon_jindo_file_system_static PROPERTIES
121-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_jindo_file_system.a"
122-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
123-
)
124-
125-
# paimon_lance_file_format
126-
add_library(paimon_lance_file_format_shared SHARED IMPORTED)
127-
set_target_properties(paimon_lance_file_format_shared PROPERTIES
128-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_lance_file_format.so"
129-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
130-
)
131-
add_library(paimon_lance_file_format_static STATIC IMPORTED)
132-
set_target_properties(paimon_lance_file_format_static PROPERTIES
133-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_lance_file_format.a"
134-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
135-
)
136-
137-
# paimon_lumina_index
138-
add_library(paimon_lumina_index_shared SHARED IMPORTED)
139-
set_target_properties(paimon_lumina_index_shared PROPERTIES
140-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_lumina_index.so"
141-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
142-
)
143-
add_library(paimon_lumina_index_static STATIC IMPORTED)
144-
set_target_properties(paimon_lumina_index_static PROPERTIES
145-
IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libpaimon_lumina_index.a"
146-
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_PREFIX@/include"
147-
)
21+
check_required_components(Paimon)

ci/scripts/build_paimon.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ source_dir=${1}
2121
enable_sanitizer=${2:-false}
2222
check_clang_tidy=${3:-false}
2323
build_type=${4:-Debug}
24-
build_dir=${1}/build
24+
build_dir="${source_dir}/build"
2525

2626
# Display ccache status if available
2727
if command -v ccache &> /dev/null; then
@@ -32,8 +32,8 @@ else
3232
echo "=== ccache not found, compiling without cache acceleration ==="
3333
fi
3434

35-
mkdir ${build_dir}
36-
pushd ${build_dir}
35+
mkdir -p "${build_dir}"
36+
pushd "${build_dir}"
3737

3838
ENABLE_LUMINA="ON"
3939
if [[ "${CC:-}" == *"gcc-8"* ]] || [[ "${CXX:-}" == *"g++-8"* ]]; then
@@ -56,9 +56,9 @@ if [[ "${enable_sanitizer}" == "true" ]]; then
5656
)
5757
fi
5858

59-
cmake "${CMAKE_ARGS[@]}" ${source_dir}
60-
cmake --build . -- -j$(nproc)
61-
ctest --output-on-failure -j $(nproc)
59+
cmake "${CMAKE_ARGS[@]}" "${source_dir}"
60+
cmake --build . -- -j "$(nproc)"
61+
ctest --output-on-failure -j "$(nproc)"
6262

6363
if [[ "${check_clang_tidy}" == "true" ]]; then
6464
cmake --build . --target check-clang-tidy
@@ -72,4 +72,4 @@ fi
7272

7373
popd
7474

75-
rm -rf ${build_dir}
75+
rm -rf "${build_dir}"

cmake_modules/BuildUtils.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function(add_paimon_lib LIB_NAME)
150150
-Wl,--gc-sections)
151151

152152
install(TARGETS ${LIB_NAME}_shared ${INSTALL_IS_OPTIONAL}
153-
EXPORT ${LIB_NAME}_targets
153+
EXPORT PaimonTargets
154154
RUNTIME DESTINATION ${RUNTIME_INSTALL_DIR}
155155
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
156156
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
@@ -197,7 +197,7 @@ function(add_paimon_lib LIB_NAME)
197197
PUBLIC "$<BUILD_INTERFACE:paimon_sanitizer_flags>")
198198

199199
install(TARGETS ${LIB_NAME}_static ${INSTALL_IS_OPTIONAL}
200-
EXPORT ${LIB_NAME}_targets
200+
EXPORT PaimonTargets
201201
RUNTIME DESTINATION ${RUNTIME_INSTALL_DIR}
202202
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
203203
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}

docs/source/build_system.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ for data format and file system.
5252
find_package(Paimon REQUIRED)
5353
5454
add_executable(my_example my_example.cc)
55-
target_link_libraries(my_example PRIVATE arrow_shared
56-
paimon_shared
57-
paimon_parquet_file_format_shared
58-
paimon_local_file_system_shared)
55+
target_link_libraries(my_example PRIVATE Arrow::arrow_shared
56+
Paimon::paimon_shared
57+
Paimon::paimon_parquet_file_format_shared
58+
Paimon::paimon_local_file_system_shared)
5959
6060
Available variables and targets
6161
-------------------------------
@@ -64,10 +64,10 @@ The directive ``find_package(Paimon REQUIRED)`` instructs CMake to locate a
6464
Paimon C++ installation on your system. If successful, it sets ``Paimon_FOUND``
6565
to true if the Paimon C++ libraries were found.
6666

67-
It also defines the following linkable targets (plain strings, not variables):
67+
It also defines the following linkable imported targets:
6868

69-
* ``paimon_shared`` links to the Paimon shared libraries
70-
* ``paimon_static`` links to the Paimon static libraries
69+
* ``Paimon::paimon_shared`` links to the Paimon shared libraries
70+
* ``Paimon::paimon_static`` links to the Paimon static libraries
7171

7272
In most cases, it is recommended to use the Paimon shared libraries.
7373

@@ -78,21 +78,21 @@ Paimon provides a set of built-in optional plugins that you can link to as neede
7878

7979
- File format plugins:
8080

81-
- ``paimon_parquet_file_format_shared`` / ``paimon_parquet_file_format_static``
82-
- ``paimon_orc_file_format_shared`` / ``paimon_orc_file_format_static``
83-
- ``paimon_avro_file_format_shared`` / ``paimon_avro_file_format_static``
84-
- ``paimon_blob_file_format_shared`` / ``paimon_blob_file_format_static``
81+
- ``Paimon::paimon_parquet_file_format_shared`` / ``Paimon::paimon_parquet_file_format_static``
82+
- ``Paimon::paimon_orc_file_format_shared`` / ``Paimon::paimon_orc_file_format_static``
83+
- ``Paimon::paimon_avro_file_format_shared`` / ``Paimon::paimon_avro_file_format_static``
84+
- ``Paimon::paimon_blob_file_format_shared`` / ``Paimon::paimon_blob_file_format_static``
8585

8686
- File system plugins:
8787

88-
- ``paimon_local_file_system_shared`` / ``paimon_local_file_system_static``
89-
- ``paimon_jindo_file_system_shared`` / ``paimon_jindo_file_system_static``
88+
- ``Paimon::paimon_local_file_system_shared`` / ``Paimon::paimon_local_file_system_static``
89+
- ``Paimon::paimon_jindo_file_system_shared`` / ``Paimon::paimon_jindo_file_system_static``
9090

9191
- Index plugins:
9292

93-
- ``paimon_file_index_shared`` / ``paimon_file_index_static``
94-
- ``paimon_lumina_index_shared`` / ``paimon_lumina_index_static``
95-
- ``paimon_lucene_index_shared`` / ``paimon_lucene_index_static``
93+
- ``Paimon::paimon_file_index_shared`` / ``Paimon::paimon_file_index_static``
94+
- ``Paimon::paimon_lumina_index_shared`` / ``Paimon::paimon_lumina_index_static``
95+
- ``Paimon::paimon_lucene_index_shared`` / ``Paimon::paimon_lucene_index_static``
9696

9797
.. note::
9898

examples/CMakeLists.txt

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,18 @@ find_package(Paimon CONFIG REQUIRED)
2626
add_executable(read_write_demo read_write_demo.cpp)
2727
add_executable(clean_demo clean_demo.cpp)
2828

29-
include_directories(${PAIMON_INCLUDE_DIRS})
30-
3129
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--no-as-needed ${CMAKE_EXE_LINKER_FLAGS}")
3230

3331
target_link_libraries(read_write_demo
34-
PRIVATE arrow_shared
35-
paimon_shared
36-
paimon_parquet_file_format_shared
37-
paimon_orc_file_format_shared
38-
paimon_local_file_system_shared)
32+
PRIVATE Arrow::arrow_shared
33+
Paimon::paimon_shared
34+
Paimon::paimon_parquet_file_format_shared
35+
Paimon::paimon_orc_file_format_shared
36+
Paimon::paimon_local_file_system_shared)
3937

4038
target_link_libraries(clean_demo
41-
PRIVATE arrow_shared
42-
paimon_shared
43-
paimon_parquet_file_format_shared
44-
paimon_orc_file_format_shared
45-
paimon_local_file_system_shared)
39+
PRIVATE Arrow::arrow_shared
40+
Paimon::paimon_shared
41+
Paimon::paimon_parquet_file_format_shared
42+
Paimon::paimon_orc_file_format_shared
43+
Paimon::paimon_local_file_system_shared)

0 commit comments

Comments
 (0)