GitHub user yhuai opened a pull request:
https://github.com/apache/spark/pull/12714
[SPARK-14130] [SQL] Throw exceptions for ALTER TABLE ADD/REPLACE/CHANGE
COLUMN, ALTER TABLE SET FILEFORMAT, DBFS, and transaction related commands
## What changes were proposed in this pull request?
This PR will make Spark SQL not allow ALTER TABLE ADD/REPLACE/CHANGE
COLUMN, ALTER TABLE SET FILEFORMAT, DBFS, and transaction related commands.
## How was this patch tested?
Existing tests. For those tests that I put in the blacklist, I am adding
the useful parts back to SQLQuerySuite.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yhuai/spark banNativeCommand
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12714.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 #12714
----
commit f5002c57d61f05579aa4adb38077c0d24e275dbc
Author: Yin Huai <[email protected]>
Date: 2016-04-26T05:37:54Z
There are several commands that we should obviously ban.
commit 79b7058f6618d1dbf88b6f4fe5029cdb67040c2d
Author: Yin Huai <[email protected]>
Date: 2016-04-26T18:59:05Z
Do not support ALTER TABLE ADD COLUMN, ALTER TABLE REPLACE COLUMN, ALTER
TABLE CHANGE COLUMN, ALTER TABLE SET FILEFORMAT, and DFS commands.
commit c8f64c48aaa108891b8b5c04ee9b06b73f38199f
Author: Yin Huai <[email protected]>
Date: 2016-04-26T18:59:41Z
Remove unnedded golden files.
commit 8a959ffa2bfe90e987a971bfd53dd46050fbd6f9
Author: Yin Huai <[email protected]>
Date: 2016-04-26T21:47:06Z
Add some useful tests back.
----
---
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]