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-5460) invalid offsets in lag lead should return an exception (per ISO-SQL)
Date Wed, 09 Oct 2013 15:49:43 GMT

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

Hudson commented on HIVE-5460:
------------------------------

FAILURE: Integrated in Hive-trunk-hadoop1-ptest #197 (See [https://builds.apache.org/job/Hive-trunk-hadoop1-ptest/197/])
HIVE-5460: invalid offsets in lag lead should return an exception (per ISO-SQL) (Edward Capriolo
via Brock Noland) (brock: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1530393)
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/WindowingExprNodeEvaluatorFactory.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFLeadLag.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFLag.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFLead.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFLeadLag.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/LeadLagBuffer.java
* /hive/trunk/ql/src/test/queries/clientnegative/windowing_ll_no_neg.q
* /hive/trunk/ql/src/test/results/clientnegative/windowing_ll_no_neg.q.out


> invalid offsets in lag lead should return an exception (per ISO-SQL) 
> ---------------------------------------------------------------------
>
>                 Key: HIVE-5460
>                 URL: https://issues.apache.org/jira/browse/HIVE-5460
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.11.0
>            Reporter: N Campbell
>            Assignee: Edward Capriolo
>            Priority: Minor
>             Fix For: 0.13.0
>
>         Attachments: HIVE-5460.1.patch.txt
>
>
> ISO-SQL 2011 defines how lag and lead should behave when invalid offsets are provided
to the functions.
> i.e. select tint.rnum,tint.cint, lag( tint.cint, -100 )  over ( order by tint.rnum) from
tint tint 
> Instead of a meaningful error (as other vendors will emit) you get 
> Error: Query returned non-zero code: 2, cause: FAILED: Execution Error, return code 2
from org.apache.hadoop.hive.ql.exec.MapRedTask
> SQLState:  08S01
> ErrorCode: 2



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message