You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Zheng Shao (JIRA)" <ji...@apache.org> on 2008/12/05 11:19:44 UTC
[jira] Created: (HIVE-124) aggregation on empty table should still
return 1 row
aggregation on empty table should still return 1 row
----------------------------------------------------
Key: HIVE-124
URL: https://issues.apache.org/jira/browse/HIVE-124
Project: Hadoop Hive
Issue Type: Bug
Reporter: Zheng Shao
The query "SELECT COUNT(1) FROM f_status_update fsu WHERE FALSE" should return a single row with value 0.
Our code treat that query as "SELECT 1, COUNT(1) FROM f_status_update fsu WHERE FALSE GROUP BY 1", but these 2 queries are not equivalent because the second query will return empty result if the input is empty.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HIVE-124) aggregation on empty table should still
return 1 row
Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ashish Thusoo updated HIVE-124:
-------------------------------
Priority: Critical (was: Major)
> aggregation on empty table should still return 1 row
> ----------------------------------------------------
>
> Key: HIVE-124
> URL: https://issues.apache.org/jira/browse/HIVE-124
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Query Processor
> Reporter: Zheng Shao
> Priority: Critical
>
> The query "SELECT COUNT(1) FROM f_status_update fsu WHERE FALSE" should return a single row with value 0.
> Our code treat that query as "SELECT 1, COUNT(1) FROM f_status_update fsu WHERE FALSE GROUP BY 1", but these 2 queries are not equivalent because the second query will return empty result if the input is empty.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HIVE-124) aggregation on empty table should still
return 1 row
Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Namit Jain updated HIVE-124:
----------------------------
Resolution: Fixed
Fix Version/s: 0.3.0
Hadoop Flags: [Reviewed]
Status: Resolved (was: Patch Available)
committed.
> aggregation on empty table should still return 1 row
> ----------------------------------------------------
>
> Key: HIVE-124
> URL: https://issues.apache.org/jira/browse/HIVE-124
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Query Processor
> Reporter: Zheng Shao
> Assignee: Namit Jain
> Priority: Blocker
> Fix For: 0.3.0
>
> Attachments: hive.124.1.patch
>
>
> The query "SELECT COUNT(1) FROM f_status_update fsu WHERE FALSE" should return a single row with value 0.
> Our code treat that query as "SELECT 1, COUNT(1) FROM f_status_update fsu WHERE FALSE GROUP BY 1", but these 2 queries are not equivalent because the second query will return empty result if the input is empty.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HIVE-124) aggregation on empty table should
still return 1 row
Posted by "Prasad Chakka (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681840#action_12681840 ]
Prasad Chakka commented on HIVE-124:
------------------------------------
+1
> aggregation on empty table should still return 1 row
> ----------------------------------------------------
>
> Key: HIVE-124
> URL: https://issues.apache.org/jira/browse/HIVE-124
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Query Processor
> Reporter: Zheng Shao
> Assignee: Namit Jain
> Priority: Blocker
> Attachments: hive.124.1.patch
>
>
> The query "SELECT COUNT(1) FROM f_status_update fsu WHERE FALSE" should return a single row with value 0.
> Our code treat that query as "SELECT 1, COUNT(1) FROM f_status_update fsu WHERE FALSE GROUP BY 1", but these 2 queries are not equivalent because the second query will return empty result if the input is empty.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HIVE-124) aggregation on empty table should still
return 1 row
Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Namit Jain updated HIVE-124:
----------------------------
Attachment: hive.124.1.patch
> aggregation on empty table should still return 1 row
> ----------------------------------------------------
>
> Key: HIVE-124
> URL: https://issues.apache.org/jira/browse/HIVE-124
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Query Processor
> Reporter: Zheng Shao
> Assignee: Namit Jain
> Priority: Blocker
> Attachments: hive.124.1.patch
>
>
> The query "SELECT COUNT(1) FROM f_status_update fsu WHERE FALSE" should return a single row with value 0.
> Our code treat that query as "SELECT 1, COUNT(1) FROM f_status_update fsu WHERE FALSE GROUP BY 1", but these 2 queries are not equivalent because the second query will return empty result if the input is empty.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HIVE-124) aggregation on empty table should still
return 1 row
Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Namit Jain reassigned HIVE-124:
-------------------------------
Assignee: Namit Jain
> aggregation on empty table should still return 1 row
> ----------------------------------------------------
>
> Key: HIVE-124
> URL: https://issues.apache.org/jira/browse/HIVE-124
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Query Processor
> Reporter: Zheng Shao
> Assignee: Namit Jain
> Priority: Blocker
>
> The query "SELECT COUNT(1) FROM f_status_update fsu WHERE FALSE" should return a single row with value 0.
> Our code treat that query as "SELECT 1, COUNT(1) FROM f_status_update fsu WHERE FALSE GROUP BY 1", but these 2 queries are not equivalent because the second query will return empty result if the input is empty.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HIVE-124) aggregation on empty table should still
return 1 row
Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Namit Jain updated HIVE-124:
----------------------------
Status: Patch Available (was: Open)
> aggregation on empty table should still return 1 row
> ----------------------------------------------------
>
> Key: HIVE-124
> URL: https://issues.apache.org/jira/browse/HIVE-124
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Query Processor
> Reporter: Zheng Shao
> Assignee: Namit Jain
> Priority: Blocker
> Attachments: hive.124.1.patch
>
>
> The query "SELECT COUNT(1) FROM f_status_update fsu WHERE FALSE" should return a single row with value 0.
> Our code treat that query as "SELECT 1, COUNT(1) FROM f_status_update fsu WHERE FALSE GROUP BY 1", but these 2 queries are not equivalent because the second query will return empty result if the input is empty.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HIVE-124) aggregation on empty table should still
return 1 row
Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Namit Jain updated HIVE-124:
----------------------------
Priority: Blocker (was: Critical)
> aggregation on empty table should still return 1 row
> ----------------------------------------------------
>
> Key: HIVE-124
> URL: https://issues.apache.org/jira/browse/HIVE-124
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Query Processor
> Reporter: Zheng Shao
> Priority: Blocker
>
> The query "SELECT COUNT(1) FROM f_status_update fsu WHERE FALSE" should return a single row with value 0.
> Our code treat that query as "SELECT 1, COUNT(1) FROM f_status_update fsu WHERE FALSE GROUP BY 1", but these 2 queries are not equivalent because the second query will return empty result if the input is empty.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HIVE-124) aggregation on empty table should still
return 1 row
Posted by "Jeff Hammerbacher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Hammerbacher updated HIVE-124:
-----------------------------------
Component/s: Query Processor
Adding to "Query Processor" component.
> aggregation on empty table should still return 1 row
> ----------------------------------------------------
>
> Key: HIVE-124
> URL: https://issues.apache.org/jira/browse/HIVE-124
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Query Processor
> Reporter: Zheng Shao
>
> The query "SELECT COUNT(1) FROM f_status_update fsu WHERE FALSE" should return a single row with value 0.
> Our code treat that query as "SELECT 1, COUNT(1) FROM f_status_update fsu WHERE FALSE GROUP BY 1", but these 2 queries are not equivalent because the second query will return empty result if the input is empty.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.