-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[enhancement](nereids)optimized aggregate node's error msg #38122
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
TPC-H: Total hot run time: 39572 ms
|
TPC-DS: Total hot run time: 173277 ms
|
ClickBench: Total hot run time: 30.86 s
|
@@ -622,6 +623,14 @@ private Plan bindAggregate(MatchingContext<LogicalAggregate<Plan>> ctx) { | |||
SimpleExprAnalyzer aggOutputAnalyzer = buildSimpleExprAnalyzer( | |||
agg, cascadesContext, agg.children(), true, true); | |||
List<NamedExpression> boundAggOutput = aggOutputAnalyzer.analyzeToList(agg.getOutputExpressions()); | |||
if (boundAggOutput.size() == 1 && boundAggOutput.get(0) instanceof BoundStar) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be contains BoundStar? what about select *, c1 from t group by 1
d10a37f
to
7525433
Compare
run buildall |
TPC-H: Total hot run time: 40350 ms
|
TPC-DS: Total hot run time: 173623 ms
|
ClickBench: Total hot run time: 31.18 s
|
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
## Proposed changes ``` create table t1 ( c1 bigint, c2 bigint ) DISTRIBUTED BY HASH(c1) BUCKETS 3 PROPERTIES ("replication_num" = "1"); ``` sql `select * from t1 group by 1;` the error msg before: ERROR 1105 (HY000): errCode = 2, detailMessage = Invalid call to toSlot on unbound object after: ERROR 1105 (HY000): errCode = 2, detailMessage = c2 not in aggregate's output Issue Number: close #xxx <!--Describe your changes.-->
Proposed changes
sql
select * from t1 group by 1;
the error msg before:
ERROR 1105 (HY000): errCode = 2, detailMessage = Invalid call to toSlot on unbound object
after:
ERROR 1105 (HY000): errCode = 2, detailMessage = c2 not in aggregate's output
Issue Number: close #xxx