[ 
https://issues.apache.org/jira/browse/SPARK-32563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

yx91490 updated SPARK-32563:
----------------------------
    Attachment: SPARK-32563.log

> spark-sql doesn't support insert into mixed static & dynamic partition 
> -----------------------------------------------------------------------
>
>                 Key: SPARK-32563
>                 URL: https://issues.apache.org/jira/browse/SPARK-32563
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.3.2
>         Environment: HDP version 2.3.2.3.1.4.0-315
>            Reporter: yx91490
>            Priority: Major
>         Attachments: SPARK-32563.log
>
>
> spark-sql doesn't support insert into mixed static & dynamic partition, for 
> example:
> source table :
> {code:java}
> CREATE TABLE `id_name`(`id` int, `name` string)
> PARTITIONED BY (`dt` string)
> {code}
> dest table:
> {code:java}
> CREATE TABLE `id_name_dt1_dt2`(`id` int, `name` string)
> PARTITIONED BY (`dt1` string, `dt2` string)
> {code}
> insert sql:
> {code:java}
> insert into table tmp.id_name_dt1_dt2 partition(dt1='beijing',dt2) select * 
> from tmp.id_name;
> {code}
> result:
> data not inserted, dest table partition not added



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to