aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAndrew Or <andrew@databricks.com>2016-03-28 16:45:31 -0700
committerAndrew Or <andrew@databricks.com>2016-03-28 16:45:31 -0700
commita916d2a454b63a4c234b1e0b5bf9c5b212bd37fa (patch)
treeadf5f2018c129501be7dbaceb51831b39621851e /core
parent27aab80695cfcf0c0ecf1e98a5a862a8123213a1 (diff)
downloadspark-a916d2a454b63a4c234b1e0b5bf9c5b212bd37fa.tar.gz
spark-a916d2a454b63a4c234b1e0b5bf9c5b212bd37fa.tar.bz2
spark-a916d2a454b63a4c234b1e0b5bf9c5b212bd37fa.zip
[SPARK-14119][SPARK-14120][SPARK-14122][SQL] Throw exception on unsupported DDL commands
## What changes were proposed in this pull request? Before: We just pass all role commands to Hive even though it doesn't work. After: We throw an `AnalysisException` that looks like this: ``` scala> sql("CREATE ROLE x") org.apache.spark.sql.AnalysisException: Unsupported Hive operation: CREATE ROLE; at org.apache.spark.sql.hive.HiveQl$$anonfun$parsePlan$1.apply(HiveQl.scala:213) at org.apache.spark.sql.hive.HiveQl$$anonfun$parsePlan$1.apply(HiveQl.scala:208) at org.apache.spark.sql.catalyst.parser.CatalystQl.safeParse(CatalystQl.scala:49) at org.apache.spark.sql.hive.HiveQl.parsePlan(HiveQl.scala:208) at org.apache.spark.sql.SQLContext.parseSql(SQLContext.scala:198) ``` ## How was this patch tested? `HiveQuerySuite` Author: Andrew Or <andrew@databricks.com> Closes #11948 from andrewor14/ddl-role-management.
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions