caofangkun created HIVE-4905: -------------------------------- Summary: In strict mode, predicate pushdown does not work on partition columns with statements using left/right join Key: HIVE-4905 URL: https://issues.apache.org/jira/browse/HIVE-4905 Project: Hive Issue Type: Bug Components: Query Processor Affects Versions: 0.12.0 Reporter: caofangkun Assignee: caofangkun Priority: Minor
set hive.mapred.mode=strict; drop table mpt3; create table mpt3 (s1 string , s2 string) partitioned by (dt string, time string); alter table mpt3 add partition (dt='1',time='2'); drop table mpt4; create table mpt4 (s1 string , s2 string) partitioned by (dt string, time string); alter table mpt4 add partition (dt='1',time='2'); Query One: works well explain select * from mpt3 a join mpt4 b on (a.s1 = b.s1) where a.dt='1' and a.time='2' and b.dt='1'; Query Two :failed hive (default)> explain select a.* from mpt3 a right outer join mpt4 b on (a.s1 = b.s1) where a.dt='1' and a.time='2' and b.dt='1'; FAILED: SemanticException [Error 10041]: No partition predicate found for Alias "a" Table "mpt3" Query Three: failed hive (default)> explain select a.* from mpt3 a left outer join mpt4 b on (a.s1 = b.s1) where a.dt='1' and a.time='2' and b.dt='1'; FAILED: SemanticException [Error 10041]: No partition predicate found for Alias "b" Table "mpt4" -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira