hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-4214) OVER accepts general expression instead of just function
Date Thu, 22 Aug 2013 04:30:53 GMT

    [ https://issues.apache.org/jira/browse/HIVE-4214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13747219#comment-13747219
] 

Hudson commented on HIVE-4214:
------------------------------

SUCCESS: Integrated in Hive-trunk-hadoop1-ptest #135 (See [https://builds.apache.org/job/Hive-trunk-hadoop1-ptest/135/])
HIVE-4214 : OVER accepts general expression instead of just function (Ashutosh Chauhan Reviewed
by Harish Butani) (hashutosh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1516180)
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SelectClauseParser.g
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
* /hive/trunk/ql/src/test/queries/clientnegative/ptf_negative_HavingLeadWithNoGBYNoWindowing.q
* /hive/trunk/ql/src/test/queries/clientnegative/ptf_negative_HavingLeadWithPTF.q
* /hive/trunk/ql/src/test/queries/clientnegative/ptf_negative_InvalidValueBoundary.q
* /hive/trunk/ql/src/test/queries/clientnegative/ptf_negative_WhereWithRankCond.q
* /hive/trunk/ql/src/test/queries/clientnegative/windowing_leadlag_in_udaf.q
* /hive/trunk/ql/src/test/queries/clientnegative/windowing_ll_no_over.q
* /hive/trunk/ql/src/test/queries/clientpositive/ctas_colname.q
* /hive/trunk/ql/src/test/queries/clientpositive/ptf.q
* /hive/trunk/ql/src/test/queries/clientpositive/windowing.q
* /hive/trunk/ql/src/test/queries/clientpositive/windowing_expressions.q
* /hive/trunk/ql/src/test/queries/clientpositive/windowing_windowspec.q
* /hive/trunk/ql/src/test/results/clientnegative/ptf_negative_HavingLeadWithNoGBYNoWindowing.q.out
* /hive/trunk/ql/src/test/results/clientnegative/ptf_negative_WhereWithRankCond.q.out
* /hive/trunk/ql/src/test/results/clientnegative/windowing_leadlag_in_udaf.q.out
* /hive/trunk/ql/src/test/results/clientnegative/windowing_ll_no_over.q.out
* /hive/trunk/ql/src/test/results/clientpositive/correlationoptimizer12.q.out
* /hive/trunk/ql/src/test/results/clientpositive/ctas_colname.q.out
* /hive/trunk/ql/src/test/results/clientpositive/ptf.q.out
* /hive/trunk/ql/src/test/results/clientpositive/windowing.q.out
* /hive/trunk/ql/src/test/results/clientpositive/windowing_expressions.q.out
* /hive/trunk/ql/src/test/results/clientpositive/windowing_windowspec.q.out

                
> OVER accepts general expression instead of just function
> --------------------------------------------------------
>
>                 Key: HIVE-4214
>                 URL: https://issues.apache.org/jira/browse/HIVE-4214
>             Project: Hive
>          Issue Type: Bug
>          Components: PTF-Windowing
>    Affects Versions: 0.11.0
>            Reporter: Alan Gates
>            Assignee: Ashutosh Chauhan
>             Fix For: 0.12.0
>
>         Attachments: HIVE-4214.1.patch, HIVE-4214.3.patch, HIVE-4214.patch
>
>
> The query:
> select s, i, avg(d) / 10.0 over (partition by s order by i) from over100k;
> runs (and produces meaningless output).
> Over should not allow the arithmetic expression.  Only a UDAF or PTF function should
be valid there.  The correct way to write this query should be 
> select s, i, avg(d) over (partition by s order by i) / 10. 0 from over100k;

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

Mime
View raw message