You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Zoram Thanga (JIRA)" <ji...@apache.org> on 2017/10/12 19:29:00 UTC
[jira] [Closed] (IMPALA-4682) IllegalStateException when ordering
by aggregate function
[ https://issues.apache.org/jira/browse/IMPALA-4682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zoram Thanga closed IMPALA-4682.
--------------------------------
Fixed. Closing issue.
> IllegalStateException when ordering by aggregate function
> ---------------------------------------------------------
>
> Key: IMPALA-4682
> URL: https://issues.apache.org/jira/browse/IMPALA-4682
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Affects Versions: Impala 2.8.0
> Reporter: Tim Armstrong
> Assignee: Zoram Thanga
> Priority: Minor
> Labels: ramp-up, sql-language, usability
> Fix For: Impala 2.11.0
>
>
> The query is invalid (I believe) but we should produce a better error message:
> {code}
> [localhost:21000] > select * from tpch.lineitem order by count(l_orderkey);
> Query: select * from tpch.lineitem order by count(l_orderkey)
> Query submitted at: 2016-12-16 07:35:53 (Coordinator: http://tarmstrong-box:25000)
> ERROR: AnalysisException: null
> CAUSED BY: IllegalStateException: null
> {code}
> Backtrace is:
> {code}
> I1216 07:35:58.021847 3438 jni-util.cc:169] org.apache.impala.common.AnalysisException
> at org.apache.impala.analysis.AnalysisContext.analyze(AnalysisContext.java:424)
> at org.apache.impala.analysis.AnalysisContext.analyze(AnalysisContext.java:363)
> at org.apache.impala.service.Frontend.analyzeStmt(Frontend.java:899)
> at org.apache.impala.service.Frontend.createExecRequest(Frontend.java:1039)
> at org.apache.impala.service.JniFrontend.createExecRequest(JniFrontend.java:160)
> Caused by: java.lang.IllegalStateException
> at com.google.common.base.Preconditions.checkState(Preconditions.java:129)
> at org.apache.impala.analysis.SelectStmt.analyzeAggregation(SelectStmt.java:728)
> at org.apache.impala.analysis.SelectStmt.analyze(SelectStmt.java:251)
> at org.apache.impala.analysis.AnalysisContext.analyze(AnalysisContext.java:381)
> ... 4 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)