[
https://issues.apache.org/jira/browse/HIVE-9465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14295523#comment-14295523
]
Xuefu Zhang commented on HIVE-9465:
-----------------------------------
Hive manual says that the dynamic columns must be specified last. And thus I
think they are matched by position instead of name.
https://cwiki.apache.org/confluence/display/Hive/DynamicPartitions#DynamicPartitions-Syntax
> Table alias is ineffective when do loading dynamic partition
> ------------------------------------------------------------
>
> Key: HIVE-9465
> URL: https://issues.apache.org/jira/browse/HIVE-9465
> Project: Hive
> Issue Type: Bug
> Components: CLI, Physical Optimizer
> Affects Versions: 0.13.1
> Reporter: Liao, Xiaoge
>
> sql:
> drop table schema_test_xgliao;
> create table schema_test_xgliao( a string) PARTITIONED by (p String);
> set hive.exec.dynamic.partition=true;
> set hive.exec.dynamic.partition.mode=nonstrict;
> insert OVERWRITE table schema_test_xgliao
> PARTITION (p)
> select a as p, b from schema_test1_xgliao ;
> It will use "b" for the value of partion.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)