diff options
author | a-romanov <Anton.Romanov@ydb.tech> | 2023-05-15 19:24:07 +0300 |
---|---|---|
committer | a-romanov <Anton.Romanov@ydb.tech> | 2023-05-15 19:24:07 +0300 |
commit | 74a0e756f9e807d9090eedabbb510abd6567e414 (patch) | |
tree | 3a945a67a8785ec28fce2c79872edd391ca639bf | |
parent | 0ac676ac096493cfaf247dac20414e08560ab5c4 (diff) | |
download | ydb-74a0e756f9e807d9090eedabbb510abd6567e414.tar.gz |
YQL-15602 Deprecate Math::Abs,Math::Fabs,String::StartsWith,String::EndsWith
Для Abs дополнительная мотивация: https://yql.yandex-team.ru/Operations/ZF1FcOVUSSwUfLCo5u1n0yK3c_hEPFHn_xVaTag8Wlw=
-rw-r--r-- | ydb/library/yql/core/type_ann/type_ann_core.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ydb/library/yql/core/type_ann/type_ann_core.cpp b/ydb/library/yql/core/type_ann/type_ann_core.cpp index d2998399056..88262e00628 100644 --- a/ydb/library/yql/core/type_ann/type_ann_core.cpp +++ b/ydb/library/yql/core/type_ann/type_ann_core.cpp @@ -2593,7 +2593,7 @@ namespace NTypeAnnImpl { if (auto status = TryConvertToPgOp("%", input, output, ctx.Expr); status != IGraphTransformer::TStatus::Ok) { return status; } - + const bool checked = input->Content().StartsWith("Checked"); if (!EnsureArgsCount(*input, 2, ctx.Expr)) { @@ -7271,6 +7271,10 @@ template <NKikimr::NUdf::EDataSlot DataSlot> {"String.Substring", "'SUBSTRING' builtin function"}, {"String.Find", "'FIND' builtin function"}, {"String.ReverseFind", "'RFIND' builtin function"}, + {"String.StartsWith", "'StartsWith' builtin function"}, + {"String.EndsWith", "'EndsWith' builtin function"}, + {"Math.Abs", "'Abs' builtin function"}, + {"Math.Fabs", "'Abs' builtin function"}, }; if (const auto bad = deprecated.find(name); deprecated.cend() != bad) { |