GitHub user gatorsmile opened a pull request:
https://github.com/apache/spark/pull/13122
[SPARK-15331] [SQL] Disallow All the Unsupported CLI Commands
#### What changes were proposed in this pull request?
The JIRAs under https://issues.apache.org/jira/browse/SPARK-14118 remove
the support of the DDL/CLI commands that are not natively supported by Spark.
However, in Spark-SQL CLI, we still delegate the CLI commands to Hive command
processors. To be consistent, we should also remove the related command
supports in Spark SQL CLI.
Also, we need to improve Parser to issue better error exception messages
for these unsupported operations.
```
- DFS,
- RELOAD FUNCTION
- DELETE FILE/FILES/JAR/JARS/ARCHIVE/ARCHIVES
- LIST FILE/FILES/JAR/JARS/ARCHIVE/ARCHIVES
- SOURCE
```
#### How was this patch tested?
Added a test case in CliSuite.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gatorsmile/spark disableCliCommand
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13122.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 #13122
----
commit 25257df2e3d4fa6691fc0e8db5ed342ac09ffe9f
Author: gatorsmile <[email protected]>
Date: 2016-05-15T07:04:34Z
ban all the unsupported cli commands.
----
---
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]