[ 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org