hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vineet Garg (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-15763) Subquery in both LHS and RHS of IN/NOT IN throws misleading error
Date Wed, 01 Feb 2017 19:15:52 GMT

     [ https://issues.apache.org/jira/browse/HIVE-15763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vineet Garg updated HIVE-15763:
-------------------------------
    Attachment: HIVE-15763.2.patch

> Subquery in both LHS and RHS of IN/NOT IN throws misleading error
> -----------------------------------------------------------------
>
>                 Key: HIVE-15763
>                 URL: https://issues.apache.org/jira/browse/HIVE-15763
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Planning
>            Reporter: Vineet Garg
>            Assignee: Vineet Garg
>              Labels: sub-query
>         Attachments: HIVE-15763.1.patch, HIVE-15763.2.patch
>
>
> Following query throws an error
> {code}select * from part where (select max(p_size) from part) IN (select p_size from
part);{code}
> Error
> {noformat}
> SemanticException [Error 10249]: Line 1:79 Unsupported SubQuery Expression 'p_size':
Only 1 SubQuery expression is supported.
> {noformat}
> Such queries should either be supported or should be detected and an appropriate error
message should be thrown.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message