diff options
author | maxkovalev <maxkovalev@yandex-team.com> | 2023-01-31 00:40:34 +0300 |
---|---|---|
committer | maxkovalev <maxkovalev@yandex-team.com> | 2023-01-31 00:40:34 +0300 |
commit | e1e1321e25787797767e2819e5eb3f06f3502733 (patch) | |
tree | ca4b9801bdd2a22cd59314331b6eb4930b4466b7 | |
parent | f2503a071d7eef6f5247897c9d081db479bf4d54 (diff) | |
download | ydb-e1e1321e25787797767e2819e5eb3f06f3502733.tar.gz |
Add strictness to Digest, Ip, HyperLogLog, Histogram UDFs
Add strictness to Digest, Ip, HyperLogLog, Histogram UDFs
19 files changed, 52 insertions, 43 deletions
diff --git a/ydb/library/yql/udfs/common/digest/CMakeLists.darwin.txt b/ydb/library/yql/udfs/common/digest/CMakeLists.darwin.txt index 50ba05b890..091941b691 100644 --- a/ydb/library/yql/udfs/common/digest/CMakeLists.darwin.txt +++ b/ydb/library/yql/udfs/common/digest/CMakeLists.darwin.txt @@ -28,7 +28,7 @@ target_link_libraries(digest_udf INTERFACE add_global_library_for(digest_udf.global digest_udf) target_compile_options(digest_udf.global PRIVATE -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=27 + -DUDF_ABI_VERSION_MINOR=28 -DUDF_ABI_VERSION_PATCH=0 ) target_include_directories(digest_udf.global PRIVATE diff --git a/ydb/library/yql/udfs/common/digest/CMakeLists.linux-aarch64.txt b/ydb/library/yql/udfs/common/digest/CMakeLists.linux-aarch64.txt index 27df3e38e8..2e4456a743 100644 --- a/ydb/library/yql/udfs/common/digest/CMakeLists.linux-aarch64.txt +++ b/ydb/library/yql/udfs/common/digest/CMakeLists.linux-aarch64.txt @@ -29,7 +29,7 @@ target_link_libraries(digest_udf INTERFACE add_global_library_for(digest_udf.global digest_udf) target_compile_options(digest_udf.global PRIVATE -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=27 + -DUDF_ABI_VERSION_MINOR=28 -DUDF_ABI_VERSION_PATCH=0 ) target_include_directories(digest_udf.global PRIVATE diff --git a/ydb/library/yql/udfs/common/digest/CMakeLists.linux.txt b/ydb/library/yql/udfs/common/digest/CMakeLists.linux.txt index 27df3e38e8..2e4456a743 100644 --- a/ydb/library/yql/udfs/common/digest/CMakeLists.linux.txt +++ b/ydb/library/yql/udfs/common/digest/CMakeLists.linux.txt @@ -29,7 +29,7 @@ target_link_libraries(digest_udf INTERFACE add_global_library_for(digest_udf.global digest_udf) target_compile_options(digest_udf.global PRIVATE -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=27 + -DUDF_ABI_VERSION_MINOR=28 -DUDF_ABI_VERSION_PATCH=0 ) target_include_directories(digest_udf.global PRIVATE diff --git a/ydb/library/yql/udfs/common/digest/digest_udf.cpp b/ydb/library/yql/udfs/common/digest/digest_udf.cpp index 0c455b95c6..ce8c7e1d4e 100644 --- a/ydb/library/yql/udfs/common/digest/digest_udf.cpp +++ b/ydb/library/yql/udfs/common/digest/digest_udf.cpp @@ -25,49 +25,49 @@ using namespace NKikimr; using namespace NUdf; namespace { - SIMPLE_UDF(TCrc32c, ui32(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TCrc32c, ui32(TAutoMap<char*>)) { Y_UNUSED(valueBuilder); const auto& inputRef = args[0].AsStringRef(); ui32 hash = Crc32c(inputRef.Data(), inputRef.Size()); return TUnboxedValuePod(hash); } - SIMPLE_UDF(TCrc64, ui64(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TCrc64, ui64(TAutoMap<char*>)) { Y_UNUSED(valueBuilder); const auto& inputRef = args[0].AsStringRef(); ui64 hash = crc64(inputRef.Data(), inputRef.Size()); return TUnboxedValuePod(hash); } - SIMPLE_UDF(TFnv32, ui32(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TFnv32, ui32(TAutoMap<char*>)) { Y_UNUSED(valueBuilder); const auto& inputRef = args[0].AsStringRef(); ui32 hash = FnvHash<ui32>(inputRef.Data(), inputRef.Size()); return TUnboxedValuePod(hash); } - SIMPLE_UDF(TFnv64, ui64(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TFnv64, ui64(TAutoMap<char*>)) { Y_UNUSED(valueBuilder); const auto& inputRef = args[0].AsStringRef(); ui64 hash = FnvHash<ui64>(inputRef.Data(), inputRef.Size()); return TUnboxedValuePod(hash); } - SIMPLE_UDF(TMurMurHash, ui64(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TMurMurHash, ui64(TAutoMap<char*>)) { Y_UNUSED(valueBuilder); const auto& inputRef = args[0].AsStringRef(); ui64 hash = MurmurHash<ui64>(inputRef.Data(), inputRef.Size()); return TUnboxedValuePod(hash); } - SIMPLE_UDF(TMurMurHash32, ui32(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TMurMurHash32, ui32(TAutoMap<char*>)) { Y_UNUSED(valueBuilder); const auto& inputRef = args[0].AsStringRef(); ui32 hash = MurmurHash<ui32>(inputRef.Data(), inputRef.Size()); return TUnboxedValuePod(hash); } - SIMPLE_UDF(TCityHash, ui64(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TCityHash, ui64(TAutoMap<char*>)) { Y_UNUSED(valueBuilder); const auto& inputRef = args[0].AsStringRef(); ui64 hash = CityHash64(inputRef.Data(), inputRef.Size()); @@ -96,6 +96,7 @@ namespace { if (!typesOnly) { builder.Implementation(new TCityHash128); } + builder.IsStrict(); return true; } else { return false; @@ -116,33 +117,33 @@ namespace { } }; - SIMPLE_UDF(TNumericHash, ui64(TAutoMap<ui64>)) { + SIMPLE_STRICT_UDF(TNumericHash, ui64(TAutoMap<ui64>)) { Y_UNUSED(valueBuilder); ui64 input = args[0].Get<ui64>(); ui64 hash = (ui64)NumericHash(input); return TUnboxedValuePod(hash); } - SIMPLE_UDF(TMd5Hex, char*(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TMd5Hex, char*(TAutoMap<char*>)) { const auto& inputRef = args[0].AsStringRef(); MD5 md5; const TString& hash = md5.Calc(inputRef); return valueBuilder->NewString(hash); } - SIMPLE_UDF(TMd5Raw, char*(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TMd5Raw, char*(TAutoMap<char*>)) { const auto& inputRef = args[0].AsStringRef(); MD5 md5; const TString& hash = md5.CalcRaw(inputRef); return valueBuilder->NewString(hash); } - SIMPLE_UDF(TMd5HalfMix, ui64(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TMd5HalfMix, ui64(TAutoMap<char*>)) { Y_UNUSED(valueBuilder); return TUnboxedValuePod(MD5::CalcHalfMix(args[0].AsStringRef())); } - SIMPLE_UDF(TArgon2, char*(TAutoMap<char*>, TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TArgon2, char*(TAutoMap<char*>, TAutoMap<char*>)) { const static ui32 outSize = 32; const static NArgonish::TArgon2Factory afactory; const static THolder<NArgonish::IArgon2Base> argon2 = afactory.Create( @@ -157,7 +158,7 @@ namespace { return valueBuilder->NewString(TStringRef(reinterpret_cast<char*>(&out[0]), outSize)); } - SIMPLE_UDF_OPTIONS(TBlake2B, char*(TAutoMap<char*>, TOptional<char*>), builder.OptionalArgs(1)) { + SIMPLE_STRICT_UDF_OPTIONS(TBlake2B, char*(TAutoMap<char*>, TOptional<char*>), builder.OptionalArgs(1)) { const static ui32 outSize = 32; const static NArgonish::TBlake2BFactory bfactory; const TStringRef inputRef = args[0].AsStringRef(); @@ -180,7 +181,7 @@ namespace { return valueBuilder->NewString(TStringRef(reinterpret_cast<char*>(&out[0]), outSize)); } - SIMPLE_UDF(TSipHash, ui64(ui64, ui64, TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TSipHash, ui64(ui64, ui64, TAutoMap<char*>)) { using namespace highwayhash; Y_UNUSED(valueBuilder); const TStringRef inputRef = args[2].AsStringRef(); @@ -189,7 +190,7 @@ namespace { return TUnboxedValuePod(hash); } - SIMPLE_UDF(THighwayHash, ui64(ui64, ui64, ui64, ui64, TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(THighwayHash, ui64(ui64, ui64, ui64, ui64, TAutoMap<char*>)) { using namespace highwayhash; Y_UNUSED(valueBuilder); const TStringRef inputRef = args[4].AsStringRef(); @@ -202,14 +203,14 @@ namespace { return TUnboxedValuePod(hash); } - SIMPLE_UDF(TFarmHashFingerprint, ui64(TAutoMap<ui64>)) { + SIMPLE_STRICT_UDF(TFarmHashFingerprint, ui64(TAutoMap<ui64>)) { Y_UNUSED(valueBuilder); ui64 input = args[0].Get<ui64>(); ui64 hash = util::Fingerprint(input); return TUnboxedValuePod(hash); } - SIMPLE_UDF(TFarmHashFingerprint2, ui64(TAutoMap<ui64>, TAutoMap<ui64>)) { + SIMPLE_STRICT_UDF(TFarmHashFingerprint2, ui64(TAutoMap<ui64>, TAutoMap<ui64>)) { Y_UNUSED(valueBuilder); ui64 low = args[0].Get<ui64>(); ui64 high = args[1].Get<ui64>(); @@ -217,14 +218,14 @@ namespace { return TUnboxedValuePod(hash); } - SIMPLE_UDF(TFarmHashFingerprint32, ui32(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TFarmHashFingerprint32, ui32(TAutoMap<char*>)) { Y_UNUSED(valueBuilder); const auto& inputRef = args[0].AsStringRef(); auto hash = util::Fingerprint32(inputRef.Data(), inputRef.Size()); return TUnboxedValuePod(ui32(hash)); } - SIMPLE_UDF(TFarmHashFingerprint64, ui64(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TFarmHashFingerprint64, ui64(TAutoMap<char*>)) { Y_UNUSED(valueBuilder); const auto& inputRef = args[0].AsStringRef(); auto hash = util::Fingerprint64(inputRef.Data(), inputRef.Size()); @@ -251,6 +252,7 @@ namespace { if (!typesOnly) { builder.Implementation(new TFarmHashFingerprint128); } + builder.IsStrict(); return true; } else { return false; @@ -271,14 +273,14 @@ namespace { } }; - SIMPLE_UDF(TSuperFastHash, ui32(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TSuperFastHash, ui32(TAutoMap<char*>)) { Y_UNUSED(valueBuilder); const auto& inputRef = args[0].AsStringRef(); ui32 hash = SuperFastHash(inputRef.Data(), inputRef.Size()); return TUnboxedValuePod(hash); } - SIMPLE_UDF(TSha1, char*(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TSha1, char*(TAutoMap<char*>)) { const auto& inputRef = args[0].AsStringRef(); SHA_CTX sha; SHA1_Init(&sha); @@ -288,7 +290,7 @@ namespace { return valueBuilder->NewString(TStringRef(reinterpret_cast<char*>(hash), sizeof(hash))); } - SIMPLE_UDF(TSha256, char*(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TSha256, char*(TAutoMap<char*>)) { const auto& inputRef = args[0].AsStringRef(); SHA256_CTX sha; SHA256_Init(&sha); @@ -298,7 +300,7 @@ namespace { return valueBuilder->NewString(TStringRef(reinterpret_cast<char*>(hash), sizeof(hash))); } - SIMPLE_UDF(TIntHash64, ui64(TAutoMap<ui64>)) { + SIMPLE_STRICT_UDF(TIntHash64, ui64(TAutoMap<ui64>)) { Y_UNUSED(valueBuilder); ui64 x = args[0].Get<ui64>(); x ^= 0x4CF2D2BAAE6DA887ULL; @@ -310,7 +312,7 @@ namespace { return TUnboxedValuePod(x); } - SIMPLE_UDF(TXXH3, ui64(TAutoMap<char*>)) { + SIMPLE_STRICT_UDF(TXXH3, ui64(TAutoMap<char*>)) { Y_UNUSED(valueBuilder); const auto& inputRef = args[0].AsStringRef(); const ui64 hash = XXH3_64bits(inputRef.Data(), inputRef.Size()); @@ -332,6 +334,7 @@ namespace { if (!typesOnly) { builder.Implementation(new TXXH3_128); } + builder.IsStrict(); return true; } else { return false; diff --git a/ydb/library/yql/udfs/common/histogram/CMakeLists.darwin.txt b/ydb/library/yql/udfs/common/histogram/CMakeLists.darwin.txt index 04d1e485a2..931b511229 100644 --- a/ydb/library/yql/udfs/common/histogram/CMakeLists.darwin.txt +++ b/ydb/library/yql/udfs/common/histogram/CMakeLists.darwin.txt @@ -19,7 +19,7 @@ target_link_libraries(histogram_udf INTERFACE add_global_library_for(histogram_udf.global histogram_udf) target_compile_options(histogram_udf.global PRIVATE -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=27 + -DUDF_ABI_VERSION_MINOR=28 -DUDF_ABI_VERSION_PATCH=0 ) target_link_libraries(histogram_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/histogram/CMakeLists.linux-aarch64.txt b/ydb/library/yql/udfs/common/histogram/CMakeLists.linux-aarch64.txt index ae1c1e1394..4455582200 100644 --- a/ydb/library/yql/udfs/common/histogram/CMakeLists.linux-aarch64.txt +++ b/ydb/library/yql/udfs/common/histogram/CMakeLists.linux-aarch64.txt @@ -20,7 +20,7 @@ target_link_libraries(histogram_udf INTERFACE add_global_library_for(histogram_udf.global histogram_udf) target_compile_options(histogram_udf.global PRIVATE -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=27 + -DUDF_ABI_VERSION_MINOR=28 -DUDF_ABI_VERSION_PATCH=0 ) target_link_libraries(histogram_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/histogram/CMakeLists.linux.txt b/ydb/library/yql/udfs/common/histogram/CMakeLists.linux.txt index ae1c1e1394..4455582200 100644 --- a/ydb/library/yql/udfs/common/histogram/CMakeLists.linux.txt +++ b/ydb/library/yql/udfs/common/histogram/CMakeLists.linux.txt @@ -20,7 +20,7 @@ target_link_libraries(histogram_udf INTERFACE add_global_library_for(histogram_udf.global histogram_udf) target_compile_options(histogram_udf.global PRIVATE -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=27 + -DUDF_ABI_VERSION_MINOR=28 -DUDF_ABI_VERSION_PATCH=0 ) target_link_libraries(histogram_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/histogram/histogram_udf.cpp b/ydb/library/yql/udfs/common/histogram/histogram_udf.cpp index ecd0200690..5390817aca 100644 --- a/ydb/library/yql/udfs/common/histogram/histogram_udf.cpp +++ b/ydb/library/yql/udfs/common/histogram/histogram_udf.cpp @@ -697,6 +697,7 @@ namespace { if (!typesOnly) { builder.Implementation(new THistogramPrint(histogramIndexes)); } + builder.IsStrict(); return true; } else { return false; @@ -767,6 +768,7 @@ namespace { if (!typesOnly) { builder.Implementation(new THistogramToCumulativeDistributionFunction(histogramIndexes)); } + builder.IsStrict(); return true; } else { return false; @@ -855,6 +857,7 @@ namespace { if (!typesOnly) { builder.Implementation(new THistogramNormalize(histogramIndexes)); } + builder.IsStrict(); return true; } else { return false; diff --git a/ydb/library/yql/udfs/common/hyperloglog/CMakeLists.darwin.txt b/ydb/library/yql/udfs/common/hyperloglog/CMakeLists.darwin.txt index a44851da9f..c31401f3eb 100644 --- a/ydb/library/yql/udfs/common/hyperloglog/CMakeLists.darwin.txt +++ b/ydb/library/yql/udfs/common/hyperloglog/CMakeLists.darwin.txt @@ -19,7 +19,7 @@ target_link_libraries(hyperloglog_udf INTERFACE add_global_library_for(hyperloglog_udf.global hyperloglog_udf) target_compile_options(hyperloglog_udf.global PRIVATE -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=27 + -DUDF_ABI_VERSION_MINOR=28 -DUDF_ABI_VERSION_PATCH=0 ) target_link_libraries(hyperloglog_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/hyperloglog/CMakeLists.linux-aarch64.txt b/ydb/library/yql/udfs/common/hyperloglog/CMakeLists.linux-aarch64.txt index d4ac62891b..5049595af3 100644 --- a/ydb/library/yql/udfs/common/hyperloglog/CMakeLists.linux-aarch64.txt +++ b/ydb/library/yql/udfs/common/hyperloglog/CMakeLists.linux-aarch64.txt @@ -20,7 +20,7 @@ target_link_libraries(hyperloglog_udf INTERFACE add_global_library_for(hyperloglog_udf.global hyperloglog_udf) target_compile_options(hyperloglog_udf.global PRIVATE -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=27 + -DUDF_ABI_VERSION_MINOR=28 -DUDF_ABI_VERSION_PATCH=0 ) target_link_libraries(hyperloglog_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/hyperloglog/CMakeLists.linux.txt b/ydb/library/yql/udfs/common/hyperloglog/CMakeLists.linux.txt index d4ac62891b..5049595af3 100644 --- a/ydb/library/yql/udfs/common/hyperloglog/CMakeLists.linux.txt +++ b/ydb/library/yql/udfs/common/hyperloglog/CMakeLists.linux.txt @@ -20,7 +20,7 @@ target_link_libraries(hyperloglog_udf INTERFACE add_global_library_for(hyperloglog_udf.global hyperloglog_udf) target_compile_options(hyperloglog_udf.global PRIVATE -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=27 + -DUDF_ABI_VERSION_MINOR=28 -DUDF_ABI_VERSION_PATCH=0 ) target_link_libraries(hyperloglog_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/hyperloglog/hyperloglog_udf.cpp b/ydb/library/yql/udfs/common/hyperloglog/hyperloglog_udf.cpp index b4b52639dc..b12e775208 100644 --- a/ydb/library/yql/udfs/common/hyperloglog/hyperloglog_udf.cpp +++ b/ydb/library/yql/udfs/common/hyperloglog/hyperloglog_udf.cpp @@ -212,6 +212,7 @@ namespace { if (!typesOnly) { builder.Implementation(new THyperLogLog_AddValue(builder.GetSourcePosition())); } + builder.IsStrict(); return true; } else { return false; @@ -354,6 +355,7 @@ namespace { if (!typesOnly) { builder.Implementation(new THyperLogLog_Merge(builder.GetSourcePosition())); } + builder.IsStrict(); return true; } else { return false; @@ -398,6 +400,7 @@ namespace { if (!typesOnly) { builder.Implementation(new THyperLogLog_GetResult(builder.GetSourcePosition())); } + builder.IsStrict(); return true; } else { return false; diff --git a/ydb/library/yql/udfs/common/ip_base/CMakeLists.darwin.txt b/ydb/library/yql/udfs/common/ip_base/CMakeLists.darwin.txt index cd2e9dae15..212b03a6fc 100644 --- a/ydb/library/yql/udfs/common/ip_base/CMakeLists.darwin.txt +++ b/ydb/library/yql/udfs/common/ip_base/CMakeLists.darwin.txt @@ -20,7 +20,7 @@ target_link_libraries(ip_udf INTERFACE add_global_library_for(ip_udf.global ip_udf) target_compile_options(ip_udf.global PRIVATE -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=27 + -DUDF_ABI_VERSION_MINOR=28 -DUDF_ABI_VERSION_PATCH=0 ) target_link_libraries(ip_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/ip_base/CMakeLists.linux-aarch64.txt b/ydb/library/yql/udfs/common/ip_base/CMakeLists.linux-aarch64.txt index 9274f9766e..c3500b818c 100644 --- a/ydb/library/yql/udfs/common/ip_base/CMakeLists.linux-aarch64.txt +++ b/ydb/library/yql/udfs/common/ip_base/CMakeLists.linux-aarch64.txt @@ -21,7 +21,7 @@ target_link_libraries(ip_udf INTERFACE add_global_library_for(ip_udf.global ip_udf) target_compile_options(ip_udf.global PRIVATE -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=27 + -DUDF_ABI_VERSION_MINOR=28 -DUDF_ABI_VERSION_PATCH=0 ) target_link_libraries(ip_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/ip_base/CMakeLists.linux.txt b/ydb/library/yql/udfs/common/ip_base/CMakeLists.linux.txt index 9274f9766e..c3500b818c 100644 --- a/ydb/library/yql/udfs/common/ip_base/CMakeLists.linux.txt +++ b/ydb/library/yql/udfs/common/ip_base/CMakeLists.linux.txt @@ -21,7 +21,7 @@ target_link_libraries(ip_udf INTERFACE add_global_library_for(ip_udf.global ip_udf) target_compile_options(ip_udf.global PRIVATE -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=27 + -DUDF_ABI_VERSION_MINOR=28 -DUDF_ABI_VERSION_PATCH=0 ) target_link_libraries(ip_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/ip_base/lib/CMakeLists.darwin.txt b/ydb/library/yql/udfs/common/ip_base/lib/CMakeLists.darwin.txt index 172123100f..5c41eeae1a 100644 --- a/ydb/library/yql/udfs/common/ip_base/lib/CMakeLists.darwin.txt +++ b/ydb/library/yql/udfs/common/ip_base/lib/CMakeLists.darwin.txt @@ -10,7 +10,7 @@ add_library(common-ip_base-lib) target_compile_options(common-ip_base-lib PRIVATE -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=27 + -DUDF_ABI_VERSION_MINOR=28 -DUDF_ABI_VERSION_PATCH=0 ) target_link_libraries(common-ip_base-lib PUBLIC diff --git a/ydb/library/yql/udfs/common/ip_base/lib/CMakeLists.linux-aarch64.txt b/ydb/library/yql/udfs/common/ip_base/lib/CMakeLists.linux-aarch64.txt index 7c0d81d750..347d03fbe0 100644 --- a/ydb/library/yql/udfs/common/ip_base/lib/CMakeLists.linux-aarch64.txt +++ b/ydb/library/yql/udfs/common/ip_base/lib/CMakeLists.linux-aarch64.txt @@ -10,7 +10,7 @@ add_library(common-ip_base-lib) target_compile_options(common-ip_base-lib PRIVATE -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=27 + -DUDF_ABI_VERSION_MINOR=28 -DUDF_ABI_VERSION_PATCH=0 ) target_link_libraries(common-ip_base-lib PUBLIC diff --git a/ydb/library/yql/udfs/common/ip_base/lib/CMakeLists.linux.txt b/ydb/library/yql/udfs/common/ip_base/lib/CMakeLists.linux.txt index 7c0d81d750..347d03fbe0 100644 --- a/ydb/library/yql/udfs/common/ip_base/lib/CMakeLists.linux.txt +++ b/ydb/library/yql/udfs/common/ip_base/lib/CMakeLists.linux.txt @@ -10,7 +10,7 @@ add_library(common-ip_base-lib) target_compile_options(common-ip_base-lib PRIVATE -DUDF_ABI_VERSION_MAJOR=2 - -DUDF_ABI_VERSION_MINOR=27 + -DUDF_ABI_VERSION_MINOR=28 -DUDF_ABI_VERSION_PATCH=0 ) target_link_libraries(common-ip_base-lib PUBLIC diff --git a/ydb/library/yql/udfs/common/ip_base/lib/ip_base_udf.h b/ydb/library/yql/udfs/common/ip_base/lib/ip_base_udf.h index b87bd95912..26d43cc160 100644 --- a/ydb/library/yql/udfs/common/ip_base/lib/ip_base_udf.h +++ b/ydb/library/yql/udfs/common/ip_base/lib/ip_base_udf.h @@ -22,7 +22,7 @@ namespace { } }; - SIMPLE_UDF(TFromString, TOptionalString(TAutoMapString)) { + SIMPLE_STRICT_UDF(TFromString, TOptionalString(TAutoMapString)) { try { TString input(args[0].AsStringRef()); const TIp4Or6& ip = Ip4Or6FromString(input.c_str()); @@ -48,7 +48,7 @@ namespace { } } - SIMPLE_UDF(TIsIPv4, bool(TOptionalString)) { + SIMPLE_STRICT_UDF(TIsIPv4, bool(TOptionalString)) { Y_UNUSED(valueBuilder); bool result = false; if (args[0]) { @@ -58,7 +58,7 @@ namespace { return TUnboxedValuePod(result); } - SIMPLE_UDF(TIsIPv6, bool(TOptionalString)) { + SIMPLE_STRICT_UDF(TIsIPv6, bool(TOptionalString)) { Y_UNUSED(valueBuilder); bool result = false; if (args[0]) { @@ -68,7 +68,7 @@ namespace { return TUnboxedValuePod(result); } - SIMPLE_UDF(TIsEmbeddedIPv4, bool(TOptionalString)) { + SIMPLE_STRICT_UDF(TIsEmbeddedIPv4, bool(TOptionalString)) { Y_UNUSED(valueBuilder); bool result = false; if (args[0]) { |