[
https://issues.apache.org/jira/browse/HIVE-18724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16607667#comment-16607667
]
Hive QA commented on HIVE-18724:
--------------------------------
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12938807/HIVE-18724.02.patch
{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.
{color:green}SUCCESS:{color} +1 due to 14931 tests passed
Test results:
https://builds.apache.org/job/PreCommit-HIVE-Build/13650/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/13650/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-13650/
Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12938807 - PreCommit-HIVE-Build
> Improve error handling for subqueries referencing columns(correlated) of its
> grand-parent query
> -----------------------------------------------------------------------------------------------
>
> Key: HIVE-18724
> URL: https://issues.apache.org/jira/browse/HIVE-18724
> Project: Hive
> Issue Type: Improvement
> Components: Query Planning
> Reporter: Vineet Garg
> Assignee: Igor Kryvenko
> Priority: Major
> Attachments: HIVE-18724.01.patch, HIVE-18724.02.patch
>
>
> Currently Hive doesn't allow correlated subqueries which refer to columns of
> grand parent query e.g.
> {code:sql}
> select t1.a from t t1 where t1.b IN (select t2.c from t t2 where t2.a IN
> (select max(t3.b) from t t3, t t4 where t3.a=t2.a and t3.b=t1.b))
> {code}
> In this example inner most query has column reference {{t3.b=t1.b}} where
> {{t1.b}} references outer most query.
> The error which Hive compiler throw is
> {noformat}
> FAILED: SemanticException Line 0:-1 Unsupported SubQuery Expression 'a':
> Nested SubQuery expressions are not supported.
> {noformat}
> This is very misleading since Hive does support Nested subqueries.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)