[ 
https://issues.apache.org/jira/browse/HIVE-10454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14523796#comment-14523796
 ] 

Aihua Xu commented on HIVE-10454:
---------------------------------

I reverted the alias change in PrunerOperatorFactory.java since seems it will 
cause a different issue. Will file separate jira to fix it.

{noformat}
select * from (select count(1) from t1 join t2 on t1.key=t2.key where 
t1.ds='1') t3;
FAILED: SemanticException [Error 10041]: No partition predicate found for Alias 
"t3:t1" Table "t2"
{noformat}

The alias should be "t3:t2".


> 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.2.patch, 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
(v6.3.4#6332)

Reply via email to