[jira] [Updated] (HIVE-4034) Should be able to specify windowing spec without needing Between

2013-02-28 Thread Ashutosh Chauhan (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ashutosh Chauhan updated HIVE-4034:
---

Resolution: Fixed
Status: Resolved  (was: Patch Available)

> Should be able to specify windowing spec without needing Between
> 
>
> Key: HIVE-4034
> URL: https://issues.apache.org/jira/browse/HIVE-4034
> Project: Hive
>  Issue Type: Bug
>  Components: PTF-Windowing
>Reporter: Ashutosh Chauhan
>Assignee: Ashutosh Chauhan
> Attachments: HIVE-4034.patch
>
>
> Currently user need to do following:
> {noformat}
> select s, sum(b) over (distribute by i sort by si rows between unbounded 
> preceding and current row) from over100k;
> {noformat}
> but sql spec allows following as well:
> {noformat}
> select s, sum(b) over (distribute by i sort by si rows unbounded preceding) 
> from over100k;
> {noformat}
> In such cases {{current row}} should be assumed implicitly.  

--
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] [Updated] (HIVE-4034) Should be able to specify windowing spec without needing Between

2013-02-28 Thread Ashutosh Chauhan (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ashutosh Chauhan updated HIVE-4034:
---

Status: Patch Available  (was: Open)

Committed to branch. Thanks, Harish for review!

> Should be able to specify windowing spec without needing Between
> 
>
> Key: HIVE-4034
> URL: https://issues.apache.org/jira/browse/HIVE-4034
> Project: Hive
>  Issue Type: Bug
>  Components: PTF-Windowing
>Reporter: Ashutosh Chauhan
>Assignee: Ashutosh Chauhan
> Attachments: HIVE-4034.patch
>
>
> Currently user need to do following:
> {noformat}
> select s, sum(b) over (distribute by i sort by si rows between unbounded 
> preceding and current row) from over100k;
> {noformat}
> but sql spec allows following as well:
> {noformat}
> select s, sum(b) over (distribute by i sort by si rows unbounded preceding) 
> from over100k;
> {noformat}
> In such cases {{current row}} should be assumed implicitly.  

--
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] [Updated] (HIVE-4034) Should be able to specify windowing spec without needing Between

2013-02-27 Thread Ashutosh Chauhan (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ashutosh Chauhan updated HIVE-4034:
---

Attachment: HIVE-4034.patch

Patch which fixes grammar to handle these cases. I found a bug in range 
handling so most changes are related to that. See new +ve test cases related to 
range in window specification. 

> Should be able to specify windowing spec without needing Between
> 
>
> Key: HIVE-4034
> URL: https://issues.apache.org/jira/browse/HIVE-4034
> Project: Hive
>  Issue Type: Bug
>  Components: PTF-Windowing
>Reporter: Ashutosh Chauhan
>Assignee: Ashutosh Chauhan
> Attachments: HIVE-4034.patch
>
>
> Currently user need to do following:
> {noformat}
> select s, sum(b) over (distribute by i sort by si rows between unbounded 
> preceding and current row) from over100k;
> {noformat}
> but sql spec allows following as well:
> {noformat}
> select s, sum(b) over (distribute by i sort by si rows unbounded preceding) 
> from over100k;
> {noformat}
> In such cases {{current row}} should be assumed implicitly.  

--
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] [Updated] (HIVE-4034) Should be able to specify windowing spec without needing Between

2013-02-27 Thread Ashutosh Chauhan (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ashutosh Chauhan updated HIVE-4034:
---

Assignee: Ashutosh Chauhan

> Should be able to specify windowing spec without needing Between
> 
>
> Key: HIVE-4034
> URL: https://issues.apache.org/jira/browse/HIVE-4034
> Project: Hive
>  Issue Type: Bug
>  Components: PTF-Windowing
>Reporter: Ashutosh Chauhan
>Assignee: Ashutosh Chauhan
>
> Currently user need to do following:
> {noformat}
> select s, sum(b) over (distribute by i sort by si rows between unbounded 
> preceding and current row) from over100k;
> {noformat}
> but sql spec allows following as well:
> {noformat}
> select s, sum(b) over (distribute by i sort by si rows unbounded preceding) 
> from over100k;
> {noformat}
> In such cases {{current row}} should be assumed implicitly.  

--
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] [Updated] (HIVE-4034) Should be able to specify windowing spec without needing Between

2013-02-25 Thread Brock Noland (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brock Noland updated HIVE-4034:
---

Summary: Should be able to specify windowing spec without needing Between  
(was: Should be able to specify windwoing spec without needing Between)

> Should be able to specify windowing spec without needing Between
> 
>
> Key: HIVE-4034
> URL: https://issues.apache.org/jira/browse/HIVE-4034
> Project: Hive
>  Issue Type: Bug
>  Components: PTF-Windowing
>Reporter: Ashutosh Chauhan
>
> Currently user need to do following:
> {noformat}
> select s, sum(b) over (distribute by i sort by si rows between unbounded 
> preceding and current row) from over100k;
> {noformat}
> but sql spec allows following as well:
> {noformat}
> select s, sum(b) over (distribute by i sort by si rows unbounded preceding) 
> from over100k;
> {noformat}
> In such cases {{current row}} should be assumed implicitly.  

--
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