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 2020/12/28 15:13:00 UTC

[jira] [Commented] (SPARK-33924) v2 INSERT INTO .. PARTITION drops the partition location

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

Apache Spark commented on SPARK-33924:
--------------------------------------

User 'MaxGekk' has created a pull request for this issue:
https://github.com/apache/spark/pull/30952

> v2 INSERT INTO .. PARTITION drops the partition location
> --------------------------------------------------------
>
>                 Key: SPARK-33924
>                 URL: https://issues.apache.org/jira/browse/SPARK-33924
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: Maxim Gekk
>            Priority: Major
>
> See the test "with location" in v2.AlterTableRenamePartitionSuite:
> {code:scala}
> val loc = "location1"
> sql(s"ALTER TABLE $t ADD PARTITION (id = 2) LOCATION '$loc'")
> checkLocation(t, Map("id" -> "2"), loc)
> sql(s"INSERT INTO $t PARTITION (id = 2) SELECT 'def'")
> checkLocation(t, Map("id" -> "2"), loc)
> {code}
> The second check must not fail.



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

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