[
https://issues.apache.org/jira/browse/HIVE-6765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13988648#comment-13988648
]
Adrian Wang commented on HIVE-6765:
-----------------------------------
[~selinazh] Thanks for your comment! It's so glad that someone also noticed
this. Actually, I found that only when there was something like an aggregation
function in the view, will the problem came up. The problem results from
cloning the plan, but when joining with view as described, the plan would
contain a node of ASTNodeOrigin, which does not have a default construct
method, in which case when duplicating, exception will be thrown.
Could you please try to apply my patch here to see whether your problem is
resolved? Thanks again.
> ASTNodeOrigin unserializable leads to fail when join with view
> --------------------------------------------------------------
>
> Key: HIVE-6765
> URL: https://issues.apache.org/jira/browse/HIVE-6765
> Project: Hive
> Issue Type: Bug
> Affects Versions: 0.12.0
> Reporter: Adrian Wang
> Fix For: 0.13.0
>
> Attachments: HIVE-6765.patch.1
>
>
> when a view contains a UDF, and the view comes into a JOIN operation, Hive
> will encounter a bug with stack trace like
> Caused by: java.lang.InstantiationException:
> org.apache.hadoop.hive.ql.parse.ASTNodeOrigin
> at java.lang.Class.newInstance0(Class.java:359)
> at java.lang.Class.newInstance(Class.java:327)
> at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
--
This message was sent by Atlassian JIRA
(v6.2#6252)