Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.6.0
-
None
-
Reviewed
Description
Given
set hive.mapred.mode=strict; create table invites (foo int, bar string) partitioned by (ds string); create table invites2 (foo int, bar string) partitioned by (ds string); select count(*) from invites join invites2 on invites.ds=invites2.ds where invites.ds='2011-01-01';
currently an error occurs:
Error in semantic analysis: No Partition Predicate Found for Alias "invites2" Table "invites2"
The optimizer should be able to infer a predicate on invites2 via transitivity. The current lack places a burden on the user to add a redundant predicate, and makes impossible (at least in strict mode) join views where both underlying tables are partitioned (the join select list has to pick one of the tables arbitrarily).
Attachments
Attachments
Issue Links
- is blocked by
-
HIVE-1342 Predicate push down get error result when sub-queries have the same alias name
- Closed
-
HIVE-2337 Predicate pushdown erroneously conservative with outer joins
- Closed
- is depended upon by
-
HIVE-2426 Test that views with joins work properly
- Closed
- relates to
-
HIVE-1941 support explicit view partitioning
- Closed