Skip to content

Commit 14bc53d

Browse files
committed
build: introduce Lucene CI support
1 parent a4d6a2e commit 14bc53d

6 files changed

Lines changed: 15 additions & 7 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ option(PAIMON_ENABLE_AVRO "Whether to enable avro file format" ON)
5454
option(PAIMON_ENABLE_ORC "Whether to enable orc file format" ON)
5555
option(PAIMON_ENABLE_JINDO "Whether to enable jindo file system" OFF)
5656
option(PAIMON_ENABLE_LUCENE "Whether to enable lucene index" OFF)
57-
if(PAIMON_ENABLE_LUCENE)
58-
message(FATAL_ERROR "PAIMON_ENABLE_LUCENE is temporarily disabled. Please configure with -DPAIMON_ENABLE_LUCENE=OFF."
59-
)
60-
endif()
6157

6258
if(PAIMON_ENABLE_ORC)
6359
add_definitions(-DPAIMON_ENABLE_ORC)

ci/scripts/build_paimon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ CMAKE_ARGS=(
4646
"-DPAIMON_BUILD_TESTS=ON"
4747
"-DPAIMON_ENABLE_JINDO=ON"
4848
"-DPAIMON_ENABLE_LUMINA=${ENABLE_LUMINA}"
49-
"-DPAIMON_ENABLE_LUCENE=OFF"
49+
"-DPAIMON_ENABLE_LUCENE=ON"
5050
)
5151

5252
if [[ "${enable_sanitizer}" == "true" ]]; then

cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,16 @@ else()
291291
)
292292
endif()
293293

294+
if(DEFINED ENV{PAIMON_BOOST_URL})
295+
set(BOOST_SOURCE_URL "$ENV{PAIMON_BOOST_URL}")
296+
elseif(EXISTS "${THIRDPARTY_DIR}/${PAIMON_BOOST_PKG_NAME}")
297+
set_urls(BOOST_SOURCE_URL "${THIRDPARTY_DIR}/${PAIMON_BOOST_PKG_NAME}")
298+
else()
299+
set_urls(BOOST_SOURCE_URL
300+
"https://paimon-cpp.oss-cn-beijing.aliyuncs.com/thirdparty/boost/${PAIMON_BOOST_PKG_NAME}"
301+
)
302+
endif()
303+
294304
if(APPLE)
295305
set(JINDOSDK_C_DYNAMIC_LIB_NAME "jindosdk_c.${PAIMON_JINDOSDK_C_BUILD_VERSION}")
296306
set(JINDOSDK_C_DYNAMIC_LIB_FILE "lib${JINDOSDK_C_DYNAMIC_LIB_NAME}.dylib")
@@ -948,7 +958,7 @@ macro(build_boost)
948958
endif()
949959

950960
externalproject_add(boost_ep
951-
URL "${THIRDPARTY_DIR}/boost/${PAIMON_BOOST_PKG_NAME}"
961+
URL ${BOOST_SOURCE_URL}
952962
URL_HASH "SHA256=${PAIMON_BOOST_BUILD_SHA256_CHECKSUM}"
953963
CONFIGURE_COMMAND ${BOOST_PREFIX}/src/boost_ep/bootstrap.sh
954964
--with-libraries=date_time,filesystem,iostreams,regex,system,thread,chrono,atomic

docs/source/build_system.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ Paimon provides a set of built-in optional plugins that you can link to as neede
9292

9393
- ``paimon_file_index_shared`` / ``paimon_file_index_static``
9494
- ``paimon_lumina_index_shared`` / ``paimon_lumina_index_static``
95+
- ``paimon_lucene_index_shared`` / ``paimon_lucene_index_static``
9596

9697
.. note::
9798

docs/source/building.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ boolean flags to ``cmake``.
125125
* ``-DPAIMON_ENABLE_AVRO=ON``: Apache Avro libraries and Paimon integration
126126
* ``-DPAIMON_ENABLE_JINDO=ON``: Support for Alibaba Jindo filesystems
127127
* ``-DPAIMON_ENABLE_LUMINA=ON``: Support for the Lumina vector index.
128+
* ``-DPAIMON_ENABLE_LUCENE=ON``: Support for Lucene full-text search indexes
128129

129130
Third-party dependency source
130131
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

third_party/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ PAIMON_JIEBA_BUILD_VERSION=v5.6.0
110110
PAIMON_JIEBA_BUILD_SHA256_CHECKSUM=e6e517b778e0f4a99cbed1ee3eaa041616b74bc685e03a6ca08887ad9cedfe49
111111
PAIMON_JIEBA_PKG_NAME=jieba-${PAIMON_JIEBA_BUILD_VERSION}.tar.gz
112112

113-
# Boost source package is bundled at third_party/boost/
114113
PAIMON_BOOST_BUILD_VERSION=1_66_0
115114
PAIMON_BOOST_BUILD_SHA256_CHECKSUM=28e9200637800fbfd1292b2c6876189dba7e8e1c5282c71fac6515e96f7af2b0
116115
PAIMON_BOOST_PKG_NAME=boost_${PAIMON_BOOST_BUILD_VERSION}.tar.gz
@@ -142,4 +141,5 @@ DEPENDENCIES=(
142141
"PAIMON_LUCENE_URL ${PAIMON_LUCENE_PKG_NAME} ${THIRDPARTY_MIRROR_URL}https://github.com/luceneplusplus/LucenePlusPlus/archive/refs/tags/rel_${PAIMON_LUCENE_BUILD_VERSION}.tar.gz"
143142
"PAIMON_LIMONP_URL ${PAIMON_LIMONP_PKG_NAME} ${THIRDPARTY_MIRROR_URL}https://github.com/yanyiwu/limonp/archive/refs/tags/v${PAIMON_LIMONP_BUILD_VERSION}.tar.gz"
144143
"PAIMON_JIEBA_URL ${PAIMON_JIEBA_PKG_NAME} ${THIRDPARTY_MIRROR_URL}https://github.com/yanyiwu/cppjieba/archive/refs/tags/${PAIMON_JIEBA_BUILD_VERSION}.tar.gz"
144+
"PAIMON_BOOST_URL ${PAIMON_BOOST_PKG_NAME} https://paimon-cpp.oss-cn-beijing.aliyuncs.com/thirdparty/boost/${PAIMON_BOOST_PKG_NAME}"
145145
)

0 commit comments

Comments
 (0)