-
- Downloads
[SPARK-14128][SQL] Alter table DDL followup
## What changes were proposed in this pull request? This is just a followup to #12121, which implemented the alter table DDLs using the `SessionCatalog`. Specially, this corrects the behavior of setting the location of a datasource table. For datasource tables, we need to set the `locationUri` in addition to the `path` entry in the serde properties. Additionally, changing the location of a datasource table partition is not allowed. ## How was this patch tested? `DDLSuite` Author: Andrew Or <andrew@databricks.com> Closes #12186 from andrewor14/alter-table-ddl-followup.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/execution/command/ddl.scala 4 additions, 2 deletions...in/scala/org/apache/spark/sql/execution/command/ddl.scala
- sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala 17 additions, 3 deletions...ala/org/apache/spark/sql/execution/command/DDLSuite.scala
Please register or sign in to comment