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 2018/12/24 11:51:00 UTC

[jira] [Assigned] (SPARK-26435) Support creating partitioned table using Hive CTAS by specifying partition column names

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

Apache Spark reassigned SPARK-26435:
------------------------------------

    Assignee:     (was: Apache Spark)

> Support creating partitioned table using Hive CTAS by specifying partition column names
> ---------------------------------------------------------------------------------------
>
>                 Key: SPARK-26435
>                 URL: https://issues.apache.org/jira/browse/SPARK-26435
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Liang-Chi Hsieh
>            Priority: Major
>
> Spark SQL doesn't support creating partitioned table using Hive CTAS in SQL syntax. However it is supported by using DataFrameWriter API.
> {code}
> val df = Seq(("a", 1)).toDF("part", "id")
> df.write.format("hive").partitionBy("part").saveAsTable("t")
> {code}
> Hive begins to support this in newer version: https://issues.apache.org/jira/browse/HIVE-20241:
> {code}
> CREATE TABLE t PARTITIONED BY (part) AS SELECT 1 as id, "a" as part
> {code}
> To match DataFrameWriter API, we should this support to SQL syntax.



--
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