aboutsummaryrefslogtreecommitdiff
path: root/common/network-common
diff options
context:
space:
mode:
authorgatorsmile <gatorsmile@gmail.com>2016-03-29 17:39:52 -0700
committerAndrew Or <andrew@databricks.com>2016-03-29 17:39:52 -0700
commitb66b97cd04067e1ec344fa2e28dd91e7ef937af5 (patch)
tree0d879872c83765c79e9a3de6483835dd5b7bf6c3 /common/network-common
parente1f6845391078726f60e760f0ea68ccf81f9eca9 (diff)
downloadspark-b66b97cd04067e1ec344fa2e28dd91e7ef937af5.tar.gz
spark-b66b97cd04067e1ec344fa2e28dd91e7ef937af5.tar.bz2
spark-b66b97cd04067e1ec344fa2e28dd91e7ef937af5.zip
[SPARK-14124][SQL] Implement Database-related DDL Commands
#### What changes were proposed in this pull request? This PR is to implement the following four Database-related DDL commands: - `CREATE DATABASE|SCHEMA [IF NOT EXISTS] database_name` - `DROP DATABASE [IF EXISTS] database_name [RESTRICT|CASCADE]` - `DESCRIBE DATABASE [EXTENDED] db_name` - `ALTER (DATABASE|SCHEMA) database_name SET DBPROPERTIES (property_name=property_value, ...)` Another PR will be submitted to handle the unsupported commands. In the Database-related DDL commands, we will issue an error exception for `ALTER (DATABASE|SCHEMA) database_name SET OWNER [USER|ROLE] user_or_role`. cc yhuai andrewor14 rxin Could you review the changes? Is it in the right direction? Thanks! #### How was this patch tested? Added a few test cases in `command/DDLSuite.scala` for testing DDL command execution in `SQLContext`. Since `HiveContext` also shares the same implementation, the existing test cases in `\hive` also verifies the correctness of these commands. Author: gatorsmile <gatorsmile@gmail.com> Author: xiaoli <lixiao1983@gmail.com> Author: Xiao Li <xiaoli@Xiaos-MacBook-Pro.local> Closes #12009 from gatorsmile/dbDDL.
Diffstat (limited to 'common/network-common')
0 files changed, 0 insertions, 0 deletions