Skip to content

Commit 73e8da4

Browse files
committed
Fix mounts.txt. Improve diagnostics
commit_hash:3c3bc0fb4bcf949a90d2646b27f93b9ed580328d
1 parent c255a91 commit 73e8da4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

yql/essentials/core/yql_aggregate_expander.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,9 @@ TExprNode::TPtr TAggregateExpander::ExpandAggApply(const TExprNode::TPtr& node)
127127
return ExpandPgAggregationTraits(node->Pos(), *aggDescPtr, false, node->ChildPtr(2), argTypes, itemType, Ctx);
128128
}
129129

130-
auto exportsPtr = TypesCtx.Modules->GetModule("/lib/yql/aggregate.yql");
131-
YQL_ENSURE(exportsPtr);
130+
const TString modulePath = "/lib/yql/aggregate.yql";
131+
auto exportsPtr = TypesCtx.Modules->GetModule(modulePath);
132+
YQL_ENSURE(exportsPtr, "Failed to get module " << modulePath);
132133
const auto& exports = exportsPtr->Symbols();
133134
const auto ex = exports.find(TString(name) + "_traits_factory");
134135
YQL_ENSURE(exports.cend() != ex);
@@ -605,7 +606,7 @@ TExprNode::TPtr TAggregateExpander::MakeInputBlocks(const TExprNode::TPtr& strea
605606
TVector<TExprNode::TPtr> roots;
606607
for (ui32 i = 1; i < argsCount + 1; ++i) {
607608
auto root = trait->Child(2)->ChildPtr(i);
608-
allTypes.push_back(root->GetTypeAnn());
609+
allTypes.push_back(root->GetTypeAnn());
609610

610611
auto status = RemapExpr(root, root, remaps, Ctx, TOptimizeExprSettings(&TypesCtx));
611612

@@ -699,7 +700,7 @@ TExprNode::TPtr TAggregateExpander::TryGenerateBlockCombineAllOrHashed() {
699700
} else {
700701
stream = AggList;
701702
}
702-
703+
703704
TExprNode::TPtr blocks = MakeInputBlocks(stream, keyIdxs, outputColumns, aggs, false, false);
704705
if (!blocks) {
705706
return nullptr;

0 commit comments

Comments
 (0)