You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Carl Steinbach (Created) (JIRA)" <ji...@apache.org> on 2012/02/09 07:03:59 UTC
[jira] [Created] (HIVE-2794) Aggregations without grouping should
return NULL when applied to partitioning column of a partitionless table
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
[jira] [Assigned] (HIVE-2794) Aggregations without grouping should
return NULL when applied to partitioning column of a partitionless table
Posted by "Zhenxiao Luo (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhenxiao Luo reassigned HIVE-2794:
----------------------------------
Assignee: Zhenxiao Luo
> 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
> Assignee: Zhenxiao Luo
>
--
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
[jira] [Commented] (HIVE-2794) Aggregations without grouping should
return NULL when applied to partitioning column of a partitionless table
Posted by "Shreepadma Venugopalan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13480841#comment-13480841 ]
Shreepadma Venugopalan commented on HIVE-2794:
----------------------------------------------
SQL standard dictates that the return value should be NULL. However, HiveQL seems to deviate and return an empty result set for other aggregate functions as well. This needs to be fixed to achieve parity with the SQL standard.
> 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
> Assignee: Zhenxiao Luo
> Attachments: HIVE-2794.1.patch.txt
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2794) Aggregations without grouping should
return NULL when applied to partitioning column of a partitionless table
Posted by "Carl Steinbach (Commented) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (HIVE-2794) Aggregations without grouping should
return NULL when applied to partitioning column of a partitionless table
Posted by "Zhenxiao Luo (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhenxiao Luo updated HIVE-2794:
-------------------------------
Attachment: HIVE-2794.1.patch.txt
> 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
> Assignee: Zhenxiao Luo
> Attachments: HIVE-2794.1.patch.txt
>
>
--
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
[jira] [Updated] (HIVE-2794) Aggregations without grouping should
return NULL when applied to partitioning column of a partitionless table
Posted by "Zhenxiao Luo (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhenxiao Luo updated HIVE-2794:
-------------------------------
Status: Patch Available (was: Open)
> 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
> Assignee: Zhenxiao Luo
> Attachments: HIVE-2794.1.patch.txt
>
>
--
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