Tim Armstrong has uploaded this change for review. ( http://gerrit.cloudera.org:8080/16431
Change subject: IMPALA-10157: analysis error for grouping_id() w/o group by ...................................................................... IMPALA-10157: analysis error for grouping_id() w/o group by The following query is invalid because it uses grouping() without a group by clause. select int_col, grouping(int_col) from functional.alltypes Instead of an IllegalStateException, catch these invalid queries in analysis and throw an AnalysisException with a better message. Change-Id: I1dae36e32a465b3f25ba32a4468cb386d53b7c8a --- M fe/src/main/java/org/apache/impala/analysis/MultiAggregateInfo.java M fe/src/test/java/org/apache/impala/analysis/AnalyzeStmtsTest.java 2 files changed, 12 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/31/16431/1 -- To view, visit http://gerrit.cloudera.org:8080/16431 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I1dae36e32a465b3f25ba32a4468cb386d53b7c8a Gerrit-Change-Number: 16431 Gerrit-PatchSet: 1 Gerrit-Owner: Tim Armstrong <[email protected]>
