aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/core/yql_aggregate_expander.cpp
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2025-04-05 00:51:48 +0000
committerAlexander Smirnov <alex@ydb.tech>2025-04-05 00:51:48 +0000
commitd34888289f736d7643a7a33ec004d206c3a3779c (patch)
tree04b5f6884e3e3722955c2dbf050e4cc4511dedf3 /yql/essentials/core/yql_aggregate_expander.cpp
parent826d25293818e6931deb20b8763948059bd9b6fe (diff)
parentf6a0289bf403b681ad1dae577b47b70575e6afe7 (diff)
downloadydb-d34888289f736d7643a7a33ec004d206c3a3779c.tar.gz
Merge branch 'rightlib' into merge-libs-250405-0050
Diffstat (limited to 'yql/essentials/core/yql_aggregate_expander.cpp')
-rw-r--r--yql/essentials/core/yql_aggregate_expander.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/yql/essentials/core/yql_aggregate_expander.cpp b/yql/essentials/core/yql_aggregate_expander.cpp
index 7f8b143a39..11df5c7f89 100644
--- a/yql/essentials/core/yql_aggregate_expander.cpp
+++ b/yql/essentials/core/yql_aggregate_expander.cpp
@@ -12,6 +12,12 @@ namespace NYql {
TExprNode::TPtr TAggregateExpander::ExpandAggregate() {
YQL_CLOG(DEBUG, Core) << "Expand " << Node->Content();
+ if (Node->Head().GetTypeAnn()->HasErrors()) {
+ TErrorTypeVisitor errorVisitor(Ctx);
+ Node->Head().GetTypeAnn()->Accept(errorVisitor);
+ return nullptr;
+ }
+
auto result = ExpandAggregateWithFullOutput();
if (result) {
auto outputColumns = GetSetting(*Node->Child(NNodes::TCoAggregate::idx_Settings), "output_columns");