Skip to content

Commit

Permalink
Fix test.py::test[produce-reduce_multi_in-empty] (#12141)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvu1024 authored Nov 29, 2024
1 parent 8fde16d commit b8297ae
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit b8297ae

Please sign in to comment.