[jira] [Commented] (HIVE-4109) Partition by column does not have to be in order by
[ https://issues.apache.org/jira/browse/HIVE-4109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13617370#comment-13617370 ] Harish Butani commented on HIVE-4109: - +1 Partition by column does not have to be in order by --- Key: HIVE-4109 URL: https://issues.apache.org/jira/browse/HIVE-4109 Project: Hive Issue Type: Bug Components: PTF-Windowing Reporter: Brock Noland Attachments: HIVE-4109.patch Cam up in the review of HIVE-4093. Ashutosh {noformat} I am not sure if this is illegal query. I tried following two queries in postgres, both of them succeeded. select p_mfgr, avg(p_retailprice) over(partition by p_mfgr, p_type order by p_mfgr) from part; select p_mfgr, avg(p_retailprice) over(partition by p_mfgr order by p_type,p_mfgr) from part; {noformat} Harish {noformat} The first one doesn't make sense, right? Order on a subset of the partition columns The second one: Can we do this with the Hive ReduceOp have the orderColumns be in a different order than the key columns? {noformat} -- 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-4109) Partition by column does not have to be in order by
[ https://issues.apache.org/jira/browse/HIVE-4109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13617045#comment-13617045 ] Harish Butani commented on HIVE-4109: - this should be fixed with 4197 Partition by column does not have to be in order by --- Key: HIVE-4109 URL: https://issues.apache.org/jira/browse/HIVE-4109 Project: Hive Issue Type: Bug Components: PTF-Windowing Reporter: Brock Noland Cam up in the review of HIVE-4093. Ashutosh {noformat} I am not sure if this is illegal query. I tried following two queries in postgres, both of them succeeded. select p_mfgr, avg(p_retailprice) over(partition by p_mfgr, p_type order by p_mfgr) from part; select p_mfgr, avg(p_retailprice) over(partition by p_mfgr order by p_type,p_mfgr) from part; {noformat} Harish {noformat} The first one doesn't make sense, right? Order on a subset of the partition columns The second one: Can we do this with the Hive ReduceOp have the orderColumns be in a different order than the key columns? {noformat} -- 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-4109) Partition by column does not have to be in order by
[ https://issues.apache.org/jira/browse/HIVE-4109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13591549#comment-13591549 ] Ashutosh Chauhan commented on HIVE-4109: [~rhbutani] Yeah.. I wasn't sure either about legality of such queries. Thats why I tried it on postgres. Amazingly, they succeeded on postgres. Need to dig more into it. Partition by column does not have to be in order by --- Key: HIVE-4109 URL: https://issues.apache.org/jira/browse/HIVE-4109 Project: Hive Issue Type: Bug Components: PTF-Windowing Reporter: Brock Noland Cam up in the review of HIVE-4093. Ashutosh {noformat} I am not sure if this is illegal query. I tried following two queries in postgres, both of them succeeded. select p_mfgr, avg(p_retailprice) over(partition by p_mfgr, p_type order by p_mfgr) from part; select p_mfgr, avg(p_retailprice) over(partition by p_mfgr order by p_type,p_mfgr) from part; {noformat} Harish {noformat} The first one doesn't make sense, right? Order on a subset of the partition columns The second one: Can we do this with the Hive ReduceOp have the orderColumns be in a different order than the key columns? {noformat} -- 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