aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Udovichenko <rvu@ydb.tech>2024-11-29 19:03:23 +0300
committerGitHub <noreply@github.com>2024-11-29 16:03:23 +0000
commitb8297aebf9585e53bdfd7f30450c7aceb7fa8134 (patch)
tree1d9904c49a349fbf9f9da0f8b3ddfd0f58e2f24e
parent8fde16d3cdda23a3097b8bad7a4f2084c9069530 (diff)
downloadydb-b8297aebf9585e53bdfd7f30450c7aceb7fa8134.tar.gz
Fix test.py::test[produce-reduce_multi_in-empty] (#12141)
-rw-r--r--ydb/library/yql/providers/yt/provider/yql_yt_mkql_compiler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ydb/library/yql/providers/yt/provider/yql_yt_mkql_compiler.cpp b/ydb/library/yql/providers/yt/provider/yql_yt_mkql_compiler.cpp
index f12954a545..fbd0069018 100644
--- a/ydb/library/yql/providers/yt/provider/yql_yt_mkql_compiler.cpp
+++ b/ydb/library/yql/providers/yt/provider/yql_yt_mkql_compiler.cpp
@@ -452,6 +452,10 @@ void RegisterYtMkqlCompilers(NCommon::TMkqlCallableCompilerBase& compiler) {
compiler.AddCallable(TYtTableContent::CallableName(),
[](const TExprNode& node, NCommon::TMkqlBuildContext& ctx) {
TYtTableContent tableContent(&node);
+ if (node.GetConstraint<TEmptyConstraintNode>()) {
+ const auto itemType = NCommon::BuildType(node, GetSeqItemType(*node.GetTypeAnn()), ctx.ProgramBuilder);
+ return ctx.ProgramBuilder.NewEmptyList(itemType);
+ }
TMaybe<ui64> itemsCount;
TString name = ToString(TYtTableContent::CallableName());
if (auto setting = NYql::GetSetting(tableContent.Settings().Ref(), EYtSettingType::ItemsCount)) {