Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Iceberg catalog support #95

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
22 changes: 18 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 2.8.12)
set(TARGET_NAME iceberg)
project(${TARGET_NAME})

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

set(EXTENSION_NAME ${TARGET_NAME}_extension)
Expand All @@ -13,12 +13,24 @@ include_directories(src/include)
set(EXTENSION_SOURCES
src/iceberg_extension.cpp
src/iceberg_functions.cpp
src/catalog_api.cpp
src/catalog_utils.cpp
src/common/utils.cpp
src/common/schema.cpp
src/common/iceberg.cpp
src/iceberg_functions/iceberg_snapshots.cpp
src/iceberg_functions/iceberg_scan.cpp
src/iceberg_functions/iceberg_metadata.cpp)
src/iceberg_functions/iceberg_metadata.cpp
src/storage/ic_catalog.cpp
src/storage/ic_catalog_set.cpp
src/storage/ic_clear_cache.cpp
src/storage/ic_schema_entry.cpp
src/storage/ic_schema_set.cpp
src/storage/ic_table_entry.cpp
src/storage/ic_table_set.cpp
src/storage/ic_transaction.cpp
src/storage/ic_transaction_manager.cpp
)

add_library(${EXTENSION_NAME} STATIC ${EXTENSION_SOURCES})

Expand Down Expand Up @@ -73,10 +85,12 @@ target_link_libraries(
Snappy::snappy
ZLIB::ZLIB)

find_package(CURL REQUIRED)

# Link dependencies into extension
target_link_libraries(${EXTENSION_NAME} PUBLIC optimized avro_static_release
target_link_libraries(${EXTENSION_NAME} PUBLIC optimized avro_static_release CURL::libcurl
debug avro_static_debug)
target_link_libraries(${TARGET_NAME}_loadable_extension optimized
target_link_libraries(${TARGET_NAME}_loadable_extension optimized CURL::libcurl
avro_static_release debug avro_static_debug)

install(
Expand Down
Loading