-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: read_parquet_mergetree (#13)
* parquet ordered scan / mergetree like feature Co-authored-by: Lorenzo Mangani <[email protected]>
- Loading branch information
Showing
12 changed files
with
454 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,13 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
|
||
# Set extension name here | ||
set(TARGET_NAME chsql) | ||
|
||
# DuckDB's extension distribution supports vcpkg. As such, dependencies can be added in ./vcpkg.json and then | ||
# used in cmake with find_package. Feel free to remove or replace with other dependencies. | ||
# Note that it should also be removed from vcpkg.json to prevent needlessly installing it.. | ||
find_package(OpenSSL REQUIRED) | ||
|
||
set(EXTENSION_NAME ${TARGET_NAME}_extension) | ||
set(LOADABLE_EXTENSION_NAME ${TARGET_NAME}_loadable_extension) | ||
|
||
project(${TARGET_NAME}) | ||
include_directories(src/include) | ||
|
||
set(EXTENSION_SOURCES src/chsql_extension.cpp) | ||
|
||
build_static_extension(${TARGET_NAME} ${EXTENSION_SOURCES}) | ||
build_loadable_extension(${TARGET_NAME} " " ${EXTENSION_SOURCES}) | ||
|
||
# Link OpenSSL in both the static library as the loadable extension | ||
target_link_libraries(${EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto) | ||
target_link_libraries(${LOADABLE_EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto) | ||
|
||
install( | ||
TARGETS ${EXTENSION_NAME} | ||
EXPORT "${DUCKDB_EXPORT_SET}" | ||
LIBRARY DESTINATION "${INSTALL_LIB_DIR}" | ||
ARCHIVE DESTINATION "${INSTALL_LIB_DIR}") | ||
set(EXT_NAME chsql) | ||
set(DUCKDB_EXTENSION_CONFIGS ../chsql/extension_config.cmake) | ||
add_subdirectory(./duckdb) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
# Set extension name here | ||
set(TARGET_NAME chsql) | ||
# DuckDB's extension distribution supports vcpkg. As such, dependencies can be added in ./vcpkg.json and then | ||
# used in cmake with find_package. Feel free to remove or replace with other dependencies. | ||
# Note that it should also be removed from vcpkg.json to prevent needlessly installing it.. | ||
find_package(OpenSSL REQUIRED) | ||
set(EXTENSION_NAME ${TARGET_NAME}_extension) | ||
set(LOADABLE_EXTENSION_NAME ${TARGET_NAME}_loadable_extension) | ||
project(${TARGET_NAME}) | ||
|
||
include_directories( | ||
./src/include | ||
./src | ||
${CMAKE_CURRENT_SOURCE_DIR}/../duckdb/extension/parquet/include | ||
../duckdb/third_party/lz4 | ||
../duckdb/third_party/parquet | ||
../duckdb/third_party/thrift | ||
../duckdb/third_party/snappy | ||
../duckdb/third_party/zstd/include | ||
../duckdb/third_party/mbedtls | ||
../duckdb/third_party/mbedtls/include | ||
../duckdb/third_party/brotli/include) | ||
set(EXTENSION_SOURCES src/chsql_extension.cpp) | ||
build_static_extension(${TARGET_NAME} ${EXTENSION_SOURCES}) | ||
build_loadable_extension(${TARGET_NAME} " " ${EXTENSION_SOURCES}) | ||
# Link OpenSSL in both the static library as the loadable extension | ||
target_link_libraries(${EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto) | ||
target_link_libraries(${LOADABLE_EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto) | ||
install( | ||
TARGETS ${EXTENSION_NAME} | ||
EXPORT "${DUCKDB_EXPORT_SET}" | ||
LIBRARY DESTINATION "${INSTALL_LIB_DIR}" | ||
ARCHIVE DESTINATION "${INSTALL_LIB_DIR}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This file is included by DuckDB's build system. It specifies which extension to load | ||
|
||
include_directories( | ||
./src/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/../duckdb/extension/parquet/include | ||
../duckdb/third_party/lz4 | ||
../duckdb/third_party/parquet | ||
../duckdb/third_party/thrift | ||
../duckdb/third_party/snappy | ||
../duckdb/third_party/zstd/include | ||
../duckdb/third_party/mbedtls | ||
../duckdb/third_party/mbedtls/include | ||
../duckdb/third_party/brotli/include) | ||
|
||
# Extension from this repo | ||
duckdb_extension_load(chsql | ||
SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR} | ||
LOAD_TESTS | ||
) | ||
|
||
# Any extra extensions that should be built | ||
# e.g.: duckdb_extension_load(json) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.