You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Charles Chen (JIRA)" <ji...@apache.org> on 2011/08/02 00:15:48 UTC

[jira] [Resolved] (HIVE-2325) Left semi join does not allow filter on right table

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

Charles Chen resolved HIVE-2325.
--------------------------------

    Resolution: Invalid

Wiki states "The restrictions of using LEFT SEMI JOIN is that the right-hand-side table should only be referenced in the join condition (ON-clause), but not in WHERE- or SELECT-clauses etc."

> Left semi join does not allow filter on right table
> ---------------------------------------------------
>
>                 Key: HIVE-2325
>                 URL: https://issues.apache.org/jira/browse/HIVE-2325
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.7.1
>            Reporter: Charles Chen
>
> Given
> {noformat}
> create table invites (foo int, bar string) partitioned by (ds string);
> create table invites2 (foo int, bar string) partitioned by (ds string);
> explain select * from invites left semi join invites2 on invites.ds=invites2.ds where invites2.ds='2011-01-01';
> {noformat}
> an error:
> {noformat}
> FAILED: Error in semantic analysis: Line 1:86 Invalid table alias or column reference 'invites2': (possible column names are: _col0, _col1, _col2)
> {noformat}
> is returned.
> Presumably the groupby operation in the semi join doesn't preserve the column names?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira