GitHub user sureshthalamati opened a pull request:
https://github.com/apache/spark/pull/12069
[SPARK-14133][SQL] Throws exception for unsupported create/drop/alter index
, and lock/unlock operations.
## What changes were proposed in this pull request?
This PR throws Unsupported Operation exception for create index, drop
index, alter index , lock table , and unlock table operations that are not
supported in Spark SQL. Currently these operations are executed executed by
Hive.
Error:
spark-sql> drop index my_index on my_table;
Error in query:
Unsupported operation: drop index(line 1, pos 0)
## How was this patch tested?
Added test cases to HiveQuerySuite
@yhuai @hvanhovell @andrewor14
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sureshthalamati/spark
unsupported_ddl_spark-14133
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12069.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 #12069
----
commit 6f46e3284494d380a00dd707a9591e68034d4cd6
Author: sureshthalamati <[email protected]>
Date: 2016-03-30T17:31:10Z
Throws exception for unsupported create/drop/alter index, and lock/unlock
table operations.
----
---
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]