diff options
author | uzhas <uzhas@ydb.tech> | 2023-11-17 14:33:16 +0300 |
---|---|---|
committer | uzhas <uzhas@ydb.tech> | 2023-11-17 15:32:54 +0300 |
commit | e4e6720807a7ba193c586ffd3bc472cce5a3017d (patch) | |
tree | ed9e8742ba12d18f65986a2cf47ae82f4edc7462 | |
parent | 270bd6c368617e0679142b425d1def3bcef3bb26 (diff) | |
download | ydb-e4e6720807a7ba193c586ffd3bc472cce5a3017d.tar.gz |
add compress base UDF to ydbd
9 files changed, 110 insertions, 105 deletions
diff --git a/ydb/apps/ydbd/CMakeLists.darwin-x86_64.txt b/ydb/apps/ydbd/CMakeLists.darwin-x86_64.txt index 4feb522ba0..b7b8faa6d0 100644 --- a/ydb/apps/ydbd/CMakeLists.darwin-x86_64.txt +++ b/ydb/apps/ydbd/CMakeLists.darwin-x86_64.txt @@ -28,6 +28,7 @@ target_link_libraries(ydbd PUBLIC yql-parser-pg_wrapper yql-sql-pg clickhouse_client_udf + compress_udf datetime_udf datetime2_udf digest_udf diff --git a/ydb/apps/ydbd/CMakeLists.linux-aarch64.txt b/ydb/apps/ydbd/CMakeLists.linux-aarch64.txt index d769611ac8..f44a2cbc94 100644 --- a/ydb/apps/ydbd/CMakeLists.linux-aarch64.txt +++ b/ydb/apps/ydbd/CMakeLists.linux-aarch64.txt @@ -27,6 +27,7 @@ target_link_libraries(ydbd PUBLIC yql-parser-pg_wrapper yql-sql-pg clickhouse_client_udf + compress_udf datetime_udf datetime2_udf digest_udf diff --git a/ydb/apps/ydbd/CMakeLists.linux-x86_64.txt b/ydb/apps/ydbd/CMakeLists.linux-x86_64.txt index 73fee8cefa..5f9d4bf8df 100644 --- a/ydb/apps/ydbd/CMakeLists.linux-x86_64.txt +++ b/ydb/apps/ydbd/CMakeLists.linux-x86_64.txt @@ -29,6 +29,7 @@ target_link_libraries(ydbd PUBLIC yql-parser-pg_wrapper yql-sql-pg clickhouse_client_udf + compress_udf datetime_udf datetime2_udf digest_udf diff --git a/ydb/apps/ydbd/CMakeLists.windows-x86_64.txt b/ydb/apps/ydbd/CMakeLists.windows-x86_64.txt index 31a965b473..c0296c58f8 100644 --- a/ydb/apps/ydbd/CMakeLists.windows-x86_64.txt +++ b/ydb/apps/ydbd/CMakeLists.windows-x86_64.txt @@ -29,6 +29,7 @@ target_link_libraries(ydbd PUBLIC yql-parser-pg_wrapper yql-sql-pg common-clickhouse-client + compress_udf datetime_udf datetime2_udf digest_udf diff --git a/ydb/apps/ydbd/ya.make b/ydb/apps/ydbd/ya.make index 11d3f32147..10c9952b8e 100644 --- a/ydb/apps/ydbd/ya.make +++ b/ydb/apps/ydbd/ya.make @@ -47,6 +47,7 @@ PEERDIR( ydb/library/yql/parser/pg_wrapper ydb/library/yql/sql/pg ydb/library/yql/udfs/common/clickhouse/client + ydb/library/yql/udfs/common/compress_base ydb/library/yql/udfs/common/datetime ydb/library/yql/udfs/common/datetime2 ydb/library/yql/udfs/common/digest diff --git a/ydb/library/yql/udfs/common/compress_base/CMakeLists.darwin-x86_64.txt b/ydb/library/yql/udfs/common/compress_base/CMakeLists.darwin-x86_64.txt index 0bca745076..b4191bfa34 100644 --- a/ydb/library/yql/udfs/common/compress_base/CMakeLists.darwin-x86_64.txt +++ b/ydb/library/yql/udfs/common/compress_base/CMakeLists.darwin-x86_64.txt @@ -8,6 +8,32 @@ add_subdirectory(lib) +add_library(compress_udf INTERFACE) +target_link_libraries(compress_udf INTERFACE + contrib-libs-cxxsupp + yutil + yql-public-udf + public-udf-support + common-compress_base-lib +) + +add_global_library_for(compress_udf.global compress_udf) +target_compile_options(compress_udf.global PRIVATE + -DUDF_ABI_VERSION_MAJOR=2 + -DUDF_ABI_VERSION_MINOR=23 + -DUDF_ABI_VERSION_PATCH=0 +) +target_link_libraries(compress_udf.global PUBLIC + contrib-libs-cxxsupp + yutil + yql-public-udf + public-udf-support + common-compress_base-lib +) +target_sources(compress_udf.global PRIVATE + ${CMAKE_SOURCE_DIR}/ydb/library/yql/udfs/common/compress_base/compress_udf.cpp +) + add_shared_library(compress_udf.dyn) set_property(TARGET compress_udf.dyn PROPERTY OUTPUT_NAME compress_udf @@ -39,29 +65,3 @@ use_export_script(compress_udf.dyn ${CMAKE_SOURCE_DIR}/ydb/library/yql/public/udf/udfs_exports.exports ) vcs_info(compress_udf.dyn) - -add_library(compress_udf INTERFACE) -target_link_libraries(compress_udf INTERFACE - contrib-libs-cxxsupp - yutil - yql-public-udf - public-udf-support - common-compress_base-lib -) - -add_global_library_for(compress_udf.global compress_udf) -target_compile_options(compress_udf.global PRIVATE - -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=23 - -DUDF_ABI_VERSION_PATCH=0 -) -target_link_libraries(compress_udf.global PUBLIC - contrib-libs-cxxsupp - yutil - yql-public-udf - public-udf-support - common-compress_base-lib -) -target_sources(compress_udf.global PRIVATE - ${CMAKE_SOURCE_DIR}/ydb/library/yql/udfs/common/compress_base/compress_udf.cpp -) diff --git a/ydb/library/yql/udfs/common/compress_base/CMakeLists.linux-aarch64.txt b/ydb/library/yql/udfs/common/compress_base/CMakeLists.linux-aarch64.txt index 5582b9ac18..ef6f71bda1 100644 --- a/ydb/library/yql/udfs/common/compress_base/CMakeLists.linux-aarch64.txt +++ b/ydb/library/yql/udfs/common/compress_base/CMakeLists.linux-aarch64.txt @@ -8,6 +8,34 @@ add_subdirectory(lib) +add_library(compress_udf INTERFACE) +target_link_libraries(compress_udf INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + yql-public-udf + public-udf-support + common-compress_base-lib +) + +add_global_library_for(compress_udf.global compress_udf) +target_compile_options(compress_udf.global PRIVATE + -DUDF_ABI_VERSION_MAJOR=2 + -DUDF_ABI_VERSION_MINOR=23 + -DUDF_ABI_VERSION_PATCH=0 +) +target_link_libraries(compress_udf.global PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + yql-public-udf + public-udf-support + common-compress_base-lib +) +target_sources(compress_udf.global PRIVATE + ${CMAKE_SOURCE_DIR}/ydb/library/yql/udfs/common/compress_base/compress_udf.cpp +) + add_shared_library(compress_udf.dyn) set_property(TARGET compress_udf.dyn PROPERTY OUTPUT_NAME compress_udf @@ -45,31 +73,3 @@ use_export_script(compress_udf.dyn ${CMAKE_SOURCE_DIR}/ydb/library/yql/public/udf/udfs_exports.exports ) vcs_info(compress_udf.dyn) - -add_library(compress_udf INTERFACE) -target_link_libraries(compress_udf INTERFACE - contrib-libs-linux-headers - contrib-libs-cxxsupp - yutil - yql-public-udf - public-udf-support - common-compress_base-lib -) - -add_global_library_for(compress_udf.global compress_udf) -target_compile_options(compress_udf.global PRIVATE - -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=23 - -DUDF_ABI_VERSION_PATCH=0 -) -target_link_libraries(compress_udf.global PUBLIC - contrib-libs-linux-headers - contrib-libs-cxxsupp - yutil - yql-public-udf - public-udf-support - common-compress_base-lib -) -target_sources(compress_udf.global PRIVATE - ${CMAKE_SOURCE_DIR}/ydb/library/yql/udfs/common/compress_base/compress_udf.cpp -) diff --git a/ydb/library/yql/udfs/common/compress_base/CMakeLists.linux-x86_64.txt b/ydb/library/yql/udfs/common/compress_base/CMakeLists.linux-x86_64.txt index 5582b9ac18..ef6f71bda1 100644 --- a/ydb/library/yql/udfs/common/compress_base/CMakeLists.linux-x86_64.txt +++ b/ydb/library/yql/udfs/common/compress_base/CMakeLists.linux-x86_64.txt @@ -8,6 +8,34 @@ add_subdirectory(lib) +add_library(compress_udf INTERFACE) +target_link_libraries(compress_udf INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + yql-public-udf + public-udf-support + common-compress_base-lib +) + +add_global_library_for(compress_udf.global compress_udf) +target_compile_options(compress_udf.global PRIVATE + -DUDF_ABI_VERSION_MAJOR=2 + -DUDF_ABI_VERSION_MINOR=23 + -DUDF_ABI_VERSION_PATCH=0 +) +target_link_libraries(compress_udf.global PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + yql-public-udf + public-udf-support + common-compress_base-lib +) +target_sources(compress_udf.global PRIVATE + ${CMAKE_SOURCE_DIR}/ydb/library/yql/udfs/common/compress_base/compress_udf.cpp +) + add_shared_library(compress_udf.dyn) set_property(TARGET compress_udf.dyn PROPERTY OUTPUT_NAME compress_udf @@ -45,31 +73,3 @@ use_export_script(compress_udf.dyn ${CMAKE_SOURCE_DIR}/ydb/library/yql/public/udf/udfs_exports.exports ) vcs_info(compress_udf.dyn) - -add_library(compress_udf INTERFACE) -target_link_libraries(compress_udf INTERFACE - contrib-libs-linux-headers - contrib-libs-cxxsupp - yutil - yql-public-udf - public-udf-support - common-compress_base-lib -) - -add_global_library_for(compress_udf.global compress_udf) -target_compile_options(compress_udf.global PRIVATE - -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=23 - -DUDF_ABI_VERSION_PATCH=0 -) -target_link_libraries(compress_udf.global PUBLIC - contrib-libs-linux-headers - contrib-libs-cxxsupp - yutil - yql-public-udf - public-udf-support - common-compress_base-lib -) -target_sources(compress_udf.global PRIVATE - ${CMAKE_SOURCE_DIR}/ydb/library/yql/udfs/common/compress_base/compress_udf.cpp -) diff --git a/ydb/library/yql/udfs/common/compress_base/CMakeLists.windows-x86_64.txt b/ydb/library/yql/udfs/common/compress_base/CMakeLists.windows-x86_64.txt index 6aa0484035..fae3d31f88 100644 --- a/ydb/library/yql/udfs/common/compress_base/CMakeLists.windows-x86_64.txt +++ b/ydb/library/yql/udfs/common/compress_base/CMakeLists.windows-x86_64.txt @@ -8,53 +8,53 @@ add_subdirectory(lib) -add_shared_library(compress_udf.dyn) -set_property(TARGET compress_udf.dyn PROPERTY - OUTPUT_NAME compress_udf +add_library(compress_udf INTERFACE) +target_link_libraries(compress_udf INTERFACE + contrib-libs-cxxsupp + yutil + yql-public-udf + public-udf-support + common-compress_base-lib ) -target_compile_options(compress_udf.dyn PRIVATE - -DBUILD_UDF + +add_global_library_for(compress_udf.global compress_udf) +target_compile_options(compress_udf.global PRIVATE -DUDF_ABI_VERSION_MAJOR=2 -DUDF_ABI_VERSION_MINOR=23 -DUDF_ABI_VERSION_PATCH=0 ) -target_link_libraries(compress_udf.dyn PUBLIC +target_link_libraries(compress_udf.global PUBLIC contrib-libs-cxxsupp yutil yql-public-udf public-udf-support common-compress_base-lib ) -target_sources(compress_udf.dyn PRIVATE +target_sources(compress_udf.global PRIVATE ${CMAKE_SOURCE_DIR}/ydb/library/yql/udfs/common/compress_base/compress_udf.cpp ) -use_export_script(compress_udf.dyn - ${CMAKE_SOURCE_DIR}/ydb/library/yql/public/udf/udfs_exports.exports -) -vcs_info(compress_udf.dyn) -add_library(compress_udf INTERFACE) -target_link_libraries(compress_udf INTERFACE - contrib-libs-cxxsupp - yutil - yql-public-udf - public-udf-support - common-compress_base-lib +add_shared_library(compress_udf.dyn) +set_property(TARGET compress_udf.dyn PROPERTY + OUTPUT_NAME compress_udf ) - -add_global_library_for(compress_udf.global compress_udf) -target_compile_options(compress_udf.global PRIVATE +target_compile_options(compress_udf.dyn PRIVATE + -DBUILD_UDF -DUDF_ABI_VERSION_MAJOR=2 -DUDF_ABI_VERSION_MINOR=23 -DUDF_ABI_VERSION_PATCH=0 ) -target_link_libraries(compress_udf.global PUBLIC +target_link_libraries(compress_udf.dyn PUBLIC contrib-libs-cxxsupp yutil yql-public-udf public-udf-support common-compress_base-lib ) -target_sources(compress_udf.global PRIVATE +target_sources(compress_udf.dyn PRIVATE ${CMAKE_SOURCE_DIR}/ydb/library/yql/udfs/common/compress_base/compress_udf.cpp ) +use_export_script(compress_udf.dyn + ${CMAKE_SOURCE_DIR}/ydb/library/yql/public/udf/udfs_exports.exports +) +vcs_info(compress_udf.dyn) |