You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2019/04/25 06:42:00 UTC

[jira] [Assigned] (SPARK-27462) Spark hive can not choose some columns in target table flexibly, when running insert into.

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

Apache Spark reassigned SPARK-27462:
------------------------------------

    Assignee:     (was: Apache Spark)

> Spark hive can not choose some columns in target table flexibly, when running insert into.
> ------------------------------------------------------------------------------------------
>
>                 Key: SPARK-27462
>                 URL: https://issues.apache.org/jira/browse/SPARK-27462
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 2.3.0, 2.4.0
>            Reporter: jiaan.geng
>            Priority: Major
>
> Spark SQL can not support the feature to choose some columns in target table flexibly, when running
> {code:java}
> insert into tableA select ... from tableB;{code}
> This feature is supported by Hive, so I think this grammar should be consistent with Hive。
> Hive support some feature about 'insert into' as follows:
> {code:java}
> insert into gja_test_spark select * from gja_test;
> insert into gja_test_spark(key, value, other) select key, value, other from gja_test;
> insert into gja_test_spark(key, value) select value, other from gja_test;
> insert into gja_test_spark(key, other) select value, other from gja_test;
> insert into gja_test_spark(value, other) select value, other from gja_test;{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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