[ https://issues.apache.org/jira/browse/HIVE-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13204295#comment-13204295 ]
Carl Steinbach commented on HIVE-2794: -------------------------------------- "SELECT MAX(p) FROM empty" should return NULL, but instead it returns an empty result set: {noformat} hive> CREATE TABLE empty (c INT) PARTITIONED BY (p INT); hive> SELECT MAX(c) FROM empty; NULL hive> SELECT MAX(p) FROM empty; hive> ALTER TABLE empty ADD PARTITION (p=1); hive> SELECT MAX(p) FROM empty; 1 hive> {noformat} > Aggregations without grouping should return NULL when applied to partitioning > column of a partitionless table > ------------------------------------------------------------------------------------------------------------- > > Key: HIVE-2794 > URL: https://issues.apache.org/jira/browse/HIVE-2794 > Project: Hive > Issue Type: Bug > Components: Query Processor > Reporter: Carl Steinbach > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira