Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ydb/library/yql/minikql/comp_nodes/mkql_ifpresent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ IComputationNode* WrapIfPresent(TCallable& callable, const TComputationNodeFacto
const auto presentBranch = LocateNode(ctx.NodeLocator, callable, 2);
const auto missingBranch = LocateNode(ctx.NodeLocator, callable, 3);
const auto itemArg = LocateExternalNode(ctx.NodeLocator, callable, 1);
const bool multiOptional = AS_TYPE(TOptionalType, callable.GetInput(0U).GetStaticType())->GetItemType()->IsOptional();
const auto innerType = AS_TYPE(TOptionalType, callable.GetInput(0U).GetStaticType())->GetItemType();
const bool multiOptional = innerType->IsOptional() || innerType->IsPg();
if (const auto type = callable.GetType()->GetReturnType(); type->IsFlow()) {
const auto presWide = dynamic_cast<IComputationWideFlowNode*>(presentBranch);
const auto missWide = dynamic_cast<IComputationWideFlowNode*>(missingBranch);
Expand Down