[
https://issues.apache.org/jira/browse/HIVE-14222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15375456#comment-15375456
]
Wei Zheng commented on HIVE-14222:
----------------------------------
[~gopalv] Can you briefly put some explanation on how container reuse works
here? I talked to [~ashutoshc], he's not very convinced how that can happen,
given the understanding of how operator pipeline works - every time we are
creating a new object even using the same jvm.
> PTF: Operator initialization does not clean state
> -------------------------------------------------
>
> Key: HIVE-14222
> URL: https://issues.apache.org/jira/browse/HIVE-14222
> Project: Hive
> Issue Type: Bug
> Components: PTF-Windowing
> Affects Versions: 1.2.1, 2.2.0
> Reporter: Gopal V
> Assignee: Wei Zheng
>
> PTFOperator::initializeOp() does not reset currentKeys to null.
> {code}
> if (currentKeys != null && !keysAreEqual) {
> ptfInvocation.finishPartition();
> }
> ....
> if (currentKeys == null) {
> currentKeys = newKeys.copyKey();
> } else {
> currentKeys.copyKey(newKeys);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)