Xuefu Zhang commented on HIVE-10454:

Patch looks clear in logic. Since we are now going thru the whole operator tree 
to determine if a partition column is every referenced in an expression, I'm 
not sure if such expression will ALWAYS end up being used for partition 
pruning. [~aihuaxu], it would be great if you can explain. I'm not an expert on 
this, so others please chime in if you know more. Thanks.

> Query against partitioned table in strict mode failed with "No partition 
> predicate found" even if partition predicate is specified.
> -----------------------------------------------------------------------------------------------------------------------------------
>                 Key: HIVE-10454
>                 URL: https://issues.apache.org/jira/browse/HIVE-10454
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>         Attachments: HIVE-10454.patch
> The following queries fail:
> {noformat}
> create table t1 (c1 int) PARTITIONED BY (c2 string);
> set hive.mapred.mode=strict;
> select * from t1 where t1.c2 < to_date(date_add(from_unixtime( 
> unix_timestamp() ),1));
> {noformat}
> The query failed with "No partition predicate found for alias t1".

This message was sent by Atlassian JIRA

Reply via email to