GitHub user andrewor14 opened a pull request:
https://github.com/apache/spark/pull/12186
[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`
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/andrewor14/spark alter-table-ddl-followup
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12186.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #12186
----
commit 181ae1471b89785ad09020eae2bedc673eb570ae
Author: Andrew Or <[email protected]>
Date: 2016-04-05T22:27:06Z
Correct alter datasource table set location behavior
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]