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

2020-12-28 Thread Apache Spark (Jira)


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

Apache Spark reassigned SPARK-33924:


Assignee: Apache Spark

> 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
>Assignee: Apache Spark
>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



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

2020-12-28 Thread Apache Spark (Jira)


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

Apache Spark reassigned SPARK-33924:


Assignee: (was: Apache Spark)

> 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



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

2020-12-28 Thread Apache Spark (Jira)


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

Apache Spark reassigned SPARK-33924:


Assignee: Apache Spark

> 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
>Assignee: Apache Spark
>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