[ https://issues.apache.org/jira/browse/HIVE-8512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14208882#comment-14208882 ]
Sergey Shelukhin edited comment on HIVE-8512 at 11/12/14 11:28 PM: ------------------------------------------------------------------- The problem is that validation for this is done in highly unobvious manner when generating exprs from AST nodes; however, for select-star, we never generate exprs from AST node the normal way, so some bogus exprnodedesc gets added without checking was (Author: sershe): The problem is that validation for this is done in highly unobvious manner when generation exprs from AST nodes; however, for select-star, we never generate exprs from AST node the normal way, so some bogus exprnodedesc gets added without checking > queries with star and aggregate should fail > ------------------------------------------- > > Key: HIVE-8512 > URL: https://issues.apache.org/jira/browse/HIVE-8512 > Project: Hive > Issue Type: Bug > Reporter: Sergey Shelukhin > Assignee: Sergey Shelukhin > > ctas_colname test uses these, for example > This errors out: {noformat} select key, sum(key) from src;{noformat} > But this passes: {noformat} select *, sum(key), count(value) from > src;{noformat} > It looks like it returns 2 sums and 2 counts -- This message was sent by Atlassian JIRA (v6.3.4#6332)