[
https://issues.apache.org/jira/browse/IMPALA-10096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17181794#comment-17181794
]
Xianqing He edited comment on IMPALA-10096 at 8/24/20, 2:53 AM:
----------------------------------------------------------------
Because SelectStmt#analyzeGroupingExprs will initialize groupingExprs_ with the
analyzed version, it will re-analyze when sql rewritten
was (Author: xqhe):
Because SelectStmt#analyzeGroupingExprs will initialize groupingExprs_ with the
analyzed version, if sql rewrites will re-analyze
> May throw exception after expr rewrites , if the group by ordinal reference
> is still a numeric literal
> ------------------------------------------------------------------------------------------------------
>
> Key: IMPALA-10096
> URL: https://issues.apache.org/jira/browse/IMPALA-10096
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Affects Versions: Impala 4.0
> Reporter: Xianqing He
> Priority: Minor
>
> When the sql can rewrite, if the group by ordinal reference is still a
> numeric literal, it will throw exception
> {code:java}
> select 13, id, count(1) from dimtbl group by 1, 2;
> ERROR: AnalysisException: GROUP BY: ordinal exceeds the number of items in
> the SELECT list: 13
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]