diff options
| author | naumovdk <[email protected]> | 2023-04-13 12:10:10 +0300 |
|---|---|---|
| committer | naumovdk <[email protected]> | 2023-04-13 12:10:10 +0300 |
| commit | b0bc9f0d82bece5b1b71140ff63687cc4c7d4607 (patch) | |
| tree | 0299ee8f0d2253d8a75c46e63d5f9929a693d70a | |
| parent | e2ceac57531b8ce2c2c2c23ac655d3cafca46333 (diff) | |
YQL-15592 Udf strictness markup (top, topfreq, logs/dsv)
19 files changed, 29 insertions, 16 deletions
diff --git a/ydb/library/yql/udfs/common/top/CMakeLists.darwin-x86_64.txt b/ydb/library/yql/udfs/common/top/CMakeLists.darwin-x86_64.txt index b7dd8fe910c..966c6b99fe3 100644 --- a/ydb/library/yql/udfs/common/top/CMakeLists.darwin-x86_64.txt +++ b/ydb/library/yql/udfs/common/top/CMakeLists.darwin-x86_64.txt @@ -19,7 +19,7 @@ target_link_libraries(top_udf INTERFACE add_global_library_for(top_udf.global top_udf) target_compile_options(top_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(top_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/top/CMakeLists.linux-aarch64.txt b/ydb/library/yql/udfs/common/top/CMakeLists.linux-aarch64.txt index 987243fad35..ca26b7a0a1a 100644 --- a/ydb/library/yql/udfs/common/top/CMakeLists.linux-aarch64.txt +++ b/ydb/library/yql/udfs/common/top/CMakeLists.linux-aarch64.txt @@ -20,7 +20,7 @@ target_link_libraries(top_udf INTERFACE add_global_library_for(top_udf.global top_udf) target_compile_options(top_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(top_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/top/CMakeLists.linux-x86_64.txt b/ydb/library/yql/udfs/common/top/CMakeLists.linux-x86_64.txt index 987243fad35..ca26b7a0a1a 100644 --- a/ydb/library/yql/udfs/common/top/CMakeLists.linux-x86_64.txt +++ b/ydb/library/yql/udfs/common/top/CMakeLists.linux-x86_64.txt @@ -20,7 +20,7 @@ target_link_libraries(top_udf INTERFACE add_global_library_for(top_udf.global top_udf) target_compile_options(top_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(top_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/top/CMakeLists.windows-x86_64.txt b/ydb/library/yql/udfs/common/top/CMakeLists.windows-x86_64.txt index b7dd8fe910c..966c6b99fe3 100644 --- a/ydb/library/yql/udfs/common/top/CMakeLists.windows-x86_64.txt +++ b/ydb/library/yql/udfs/common/top/CMakeLists.windows-x86_64.txt @@ -19,7 +19,7 @@ target_link_libraries(top_udf INTERFACE add_global_library_for(top_udf.global top_udf) target_compile_options(top_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(top_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/top/top_udf.cpp b/ydb/library/yql/udfs/common/top/top_udf.cpp index e66f4f11500..4fad7a119fd 100644 --- a/ydb/library/yql/udfs/common/top/top_udf.cpp +++ b/ydb/library/yql/udfs/common/top/top_udf.cpp @@ -869,6 +869,7 @@ public: PARAMETRIZE(CREATE) } } + builder.IsStrict(); } if (name == AddValueName) { @@ -885,6 +886,7 @@ public: PARAMETRIZE(ADD_VALUE) } } + builder.IsStrict(); } if (name == SerializeName) { @@ -897,6 +899,7 @@ public: PARAMETRIZE(SERIALIZE) } } + builder.IsStrict(); } if (name == DeserializeName) { @@ -921,6 +924,7 @@ public: PARAMETRIZE(MERGE) } } + builder.IsStrict(); } if (name == GetResultName) { @@ -935,6 +939,7 @@ public: PARAMETRIZE(GET_RESULT) } } + builder.IsStrict(); } } catch (const std::exception& e) { diff --git a/ydb/library/yql/udfs/common/topfreq/CMakeLists.darwin-x86_64.txt b/ydb/library/yql/udfs/common/topfreq/CMakeLists.darwin-x86_64.txt index 38163124c22..1dd8ff0c73b 100644 --- a/ydb/library/yql/udfs/common/topfreq/CMakeLists.darwin-x86_64.txt +++ b/ydb/library/yql/udfs/common/topfreq/CMakeLists.darwin-x86_64.txt @@ -21,7 +21,7 @@ target_link_libraries(topfreq_udf INTERFACE add_global_library_for(topfreq_udf.global topfreq_udf) target_compile_options(topfreq_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(topfreq_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/topfreq/CMakeLists.linux-aarch64.txt b/ydb/library/yql/udfs/common/topfreq/CMakeLists.linux-aarch64.txt index 810c2cc50c8..f78e55b8779 100644 --- a/ydb/library/yql/udfs/common/topfreq/CMakeLists.linux-aarch64.txt +++ b/ydb/library/yql/udfs/common/topfreq/CMakeLists.linux-aarch64.txt @@ -22,7 +22,7 @@ target_link_libraries(topfreq_udf INTERFACE add_global_library_for(topfreq_udf.global topfreq_udf) target_compile_options(topfreq_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(topfreq_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/topfreq/CMakeLists.linux-x86_64.txt b/ydb/library/yql/udfs/common/topfreq/CMakeLists.linux-x86_64.txt index 810c2cc50c8..f78e55b8779 100644 --- a/ydb/library/yql/udfs/common/topfreq/CMakeLists.linux-x86_64.txt +++ b/ydb/library/yql/udfs/common/topfreq/CMakeLists.linux-x86_64.txt @@ -22,7 +22,7 @@ target_link_libraries(topfreq_udf INTERFACE add_global_library_for(topfreq_udf.global topfreq_udf) target_compile_options(topfreq_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(topfreq_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/topfreq/CMakeLists.windows-x86_64.txt b/ydb/library/yql/udfs/common/topfreq/CMakeLists.windows-x86_64.txt index 38163124c22..1dd8ff0c73b 100644 --- a/ydb/library/yql/udfs/common/topfreq/CMakeLists.windows-x86_64.txt +++ b/ydb/library/yql/udfs/common/topfreq/CMakeLists.windows-x86_64.txt @@ -21,7 +21,7 @@ target_link_libraries(topfreq_udf INTERFACE add_global_library_for(topfreq_udf.global topfreq_udf) target_compile_options(topfreq_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(topfreq_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.darwin-x86_64.txt b/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.darwin-x86_64.txt index 97c54f0818b..b67db761e4b 100644 --- a/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.darwin-x86_64.txt +++ b/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.darwin-x86_64.txt @@ -10,7 +10,7 @@ add_library(common-topfreq-static) target_compile_options(common-topfreq-static 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-topfreq-static PUBLIC diff --git a/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.linux-aarch64.txt b/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.linux-aarch64.txt index ca421488120..4ee6a46515f 100644 --- a/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.linux-aarch64.txt +++ b/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.linux-aarch64.txt @@ -10,7 +10,7 @@ add_library(common-topfreq-static) target_compile_options(common-topfreq-static 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-topfreq-static PUBLIC diff --git a/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.linux-x86_64.txt b/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.linux-x86_64.txt index ca421488120..4ee6a46515f 100644 --- a/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.linux-x86_64.txt +++ b/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.linux-x86_64.txt @@ -10,7 +10,7 @@ add_library(common-topfreq-static) target_compile_options(common-topfreq-static 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-topfreq-static PUBLIC diff --git a/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.windows-x86_64.txt b/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.windows-x86_64.txt index 97c54f0818b..b67db761e4b 100644 --- a/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.windows-x86_64.txt +++ b/ydb/library/yql/udfs/common/topfreq/static/CMakeLists.windows-x86_64.txt @@ -10,7 +10,7 @@ add_library(common-topfreq-static) target_compile_options(common-topfreq-static 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-topfreq-static PUBLIC diff --git a/ydb/library/yql/udfs/common/topfreq/static/topfreq_udf.h b/ydb/library/yql/udfs/common/topfreq/static/topfreq_udf.h index 5ea0a5f7294..7e0105e3786 100644 --- a/ydb/library/yql/udfs/common/topfreq/static/topfreq_udf.h +++ b/ydb/library/yql/udfs/common/topfreq/static/topfreq_udf.h @@ -303,6 +303,7 @@ namespace { } } } + builder.IsStrict(); } if (name == AddValueName) { @@ -317,6 +318,7 @@ namespace { } } } + builder.IsStrict(); } if (name == MergeName) { @@ -331,6 +333,7 @@ namespace { } } } + builder.IsStrict(); } if (name == SerializeName) { @@ -345,6 +348,7 @@ namespace { } } } + builder.IsStrict(); } if (name == DeserializeName) { @@ -377,6 +381,7 @@ namespace { } } } + builder.IsStrict(); } } catch (const std::exception& e) { diff --git a/ydb/library/yql/udfs/logs/dsv/CMakeLists.darwin-x86_64.txt b/ydb/library/yql/udfs/logs/dsv/CMakeLists.darwin-x86_64.txt index c41af758142..9f548f87a02 100644 --- a/ydb/library/yql/udfs/logs/dsv/CMakeLists.darwin-x86_64.txt +++ b/ydb/library/yql/udfs/logs/dsv/CMakeLists.darwin-x86_64.txt @@ -19,7 +19,7 @@ target_link_libraries(dsv_udf INTERFACE add_global_library_for(dsv_udf.global dsv_udf) target_compile_options(dsv_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(dsv_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/logs/dsv/CMakeLists.linux-aarch64.txt b/ydb/library/yql/udfs/logs/dsv/CMakeLists.linux-aarch64.txt index fac04b3afa5..dea4bde8358 100644 --- a/ydb/library/yql/udfs/logs/dsv/CMakeLists.linux-aarch64.txt +++ b/ydb/library/yql/udfs/logs/dsv/CMakeLists.linux-aarch64.txt @@ -20,7 +20,7 @@ target_link_libraries(dsv_udf INTERFACE add_global_library_for(dsv_udf.global dsv_udf) target_compile_options(dsv_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(dsv_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/logs/dsv/CMakeLists.linux-x86_64.txt b/ydb/library/yql/udfs/logs/dsv/CMakeLists.linux-x86_64.txt index fac04b3afa5..dea4bde8358 100644 --- a/ydb/library/yql/udfs/logs/dsv/CMakeLists.linux-x86_64.txt +++ b/ydb/library/yql/udfs/logs/dsv/CMakeLists.linux-x86_64.txt @@ -20,7 +20,7 @@ target_link_libraries(dsv_udf INTERFACE add_global_library_for(dsv_udf.global dsv_udf) target_compile_options(dsv_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(dsv_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/logs/dsv/CMakeLists.windows-x86_64.txt b/ydb/library/yql/udfs/logs/dsv/CMakeLists.windows-x86_64.txt index c41af758142..9f548f87a02 100644 --- a/ydb/library/yql/udfs/logs/dsv/CMakeLists.windows-x86_64.txt +++ b/ydb/library/yql/udfs/logs/dsv/CMakeLists.windows-x86_64.txt @@ -19,7 +19,7 @@ target_link_libraries(dsv_udf INTERFACE add_global_library_for(dsv_udf.global dsv_udf) target_compile_options(dsv_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(dsv_udf.global PUBLIC diff --git a/ydb/library/yql/udfs/logs/dsv/dsv_udf.cpp b/ydb/library/yql/udfs/logs/dsv/dsv_udf.cpp index b74bf80b185..955fbccc9d0 100644 --- a/ydb/library/yql/udfs/logs/dsv/dsv_udf.cpp +++ b/ydb/library/yql/udfs/logs/dsv/dsv_udf.cpp @@ -244,6 +244,7 @@ public: builder.Implementation(new TDsvReadRecord::TFactory( resultIndexes, ksvIndexes)); } + builder.IsStrict(); } else if (TStringRef::Of("Parse") == name) { auto optionalStringType = builder.Optional()->Item<char*>().Build(); auto dictType = builder.Dict()->Key<char*>().Value<char*>().Build(); @@ -255,6 +256,7 @@ public: if (!typesOnly) { builder.Implementation(new TDsvParse(dictType)); } + builder.IsStrict(); } else if (TStringRef::Of("Serialize") == name) { auto typeHelper = builder.TypeInfoHelper(); auto userTypeInspector = TTupleTypeInspector(*typeHelper, userType); @@ -301,6 +303,7 @@ public: if (!typesOnly) { builder.Implementation(new TDsvSerialize(typeIds, structInspector.Release())); } + builder.IsStrict(); } } catch (const std::exception& e) { |
