You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Wei Zheng (JIRA)" <ji...@apache.org> on 2016/10/31 18:08:58 UTC

[jira] [Commented] (HIVE-15099) PTFOperator.PTFInvocation didn't properly reset the input partition

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

Wei Zheng commented on HIVE-15099:
----------------------------------

Sample query that can reproduce the issue
{code}
SELECT 1
FROM ( 
  SELECT   a,
           b, 
           row_number() OVER ( partition BY a ORDER BY c DESC ) AS rank
  FROM     t1) x 
JOIN 
 ( 
  SELECT   a, 
           row_number() OVER ( partition BY a ORDER BY c DESC ) AS rank
  FROM     t2) y 
ON y.a=x.a
LEFT OUTER JOIN 
 ( 
  SELECT   a, 
           row_number() OVER ( partition BY a ORDER BY c DESC ) AS rank
  FROM     t3) z
ON y.a=z.a
WHERE x.rank = 1 
AND y.rank=1 
{code}

> PTFOperator.PTFInvocation didn't properly reset the input partition
> -------------------------------------------------------------------
>
>                 Key: HIVE-15099
>                 URL: https://issues.apache.org/jira/browse/HIVE-15099
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive, PTF-Windowing
>    Affects Versions: 1.3.0, 1.2.1, 2.1.0, 2.2.0
>            Reporter: Wei Zheng
>            Assignee: Wei Zheng
>
> There is an issue with PTFOperator.PTFInvocation where the inputPart is not reset properly. The inputPart has been closed and its content (member variables) has been cleaned up, but since itself is not nullified, it's reused in the next round and caused NPE issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)