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

Ashutosh Chauhan commented on HIVE-14719:
-----------------------------------------

Thanks [~lirui] for detailed explanation. Your patch is in right direction. If 
we remove a node and use it elsewhere then we should clear its root node before 
removing it. Can you also add a test case in your patch?

> ASTNode rootNode is not maintained properly when changing child/parent 
> relation
> -------------------------------------------------------------------------------
>
>                 Key: HIVE-14719
>                 URL: https://issues.apache.org/jira/browse/HIVE-14719
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Rui Li
>            Assignee: Rui Li
>         Attachments: HIVE-14719.1.patch
>
>
> When I run some query like:
> {code}
> set hive.cbo.enable=false;
> select * from A where exists (select * from B where B.k1=A.k1 and B.k2=A.k2);
> {code}
> It gets error like:
> {noformat}
> FAILED: SemanticException Line 0:-1 Invalid table alias or column reference 
> 'sq_1': (possible column names are: _table_or_col b) k2) sq_corr_1)) (tok, (. 
> (tok_table_or_col sq_1) sq_corr_1))
> {noformat}



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

Reply via email to