Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vitstn authored Jan 24, 2024
1 parent abdbd96 commit 213bbe7
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 213bbe7

Please sign in to comment.