File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
ydb/library/yql/providers/yt/provider Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -452,6 +452,10 @@ void RegisterYtMkqlCompilers(NCommon::TMkqlCallableCompilerBase& compiler) {
452452 compiler.AddCallable (TYtTableContent::CallableName (),
453453 [](const TExprNode& node, NCommon::TMkqlBuildContext& ctx) {
454454 TYtTableContent tableContent (&node);
455+ if (node.GetConstraint <TEmptyConstraintNode>()) {
456+ const auto itemType = NCommon::BuildType (node, GetSeqItemType (*node.GetTypeAnn ()), ctx.ProgramBuilder );
457+ return ctx.ProgramBuilder .NewEmptyList (itemType);
458+ }
455459 TMaybe<ui64> itemsCount;
456460 TString name = ToString (TYtTableContent::CallableName ());
457461 if (auto setting = NYql::GetSetting (tableContent.Settings ().Ref (), EYtSettingType::ItemsCount)) {
You can’t perform that action at this time.
0 commit comments