hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chenyukang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-15495) subquery's column alias can not be the same with partition column name
Date Tue, 27 Dec 2016 10:55:58 GMT

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

chenyukang commented on HIVE-15495:
-----------------------------------

hi [~ferhui]  I have tested it with hive 2.1.1 and this bug has been fixed in HIVE-13602.
thx~

> subquery's column alias can not be the same with partition column name 
> -----------------------------------------------------------------------
>
>                 Key: HIVE-15495
>                 URL: https://issues.apache.org/jira/browse/HIVE-15495
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Planning
>    Affects Versions: 1.1.0
>            Reporter: chenyukang
>            Assignee: Fei Hui
>
> case:
> create table testkk5(a string) partitioned by(dt string);
> alter table testkk5 add partition(dt="1");
> hive> select * from (select a as dt from testkk5 where dt="1") t1 where t1.dt="2";
> FAILED: SemanticException [Error 10041]: No partition predicate found for Alias "t1:testkk5"
Table "testkk5"
> actually outer query's column `dt` is irrevelent with table `testkk5`'s partition column
name 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message