New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-14177] [SQL] Native Parsing for DDL Command "Describe Database" and "Alter Database" #11977
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… and "describe database"
Test build #54257 has finished for PR 11977 at commit
|
LGTM. Let's rebase the PR. Thanks! |
sure, let me do it now. Thanks! |
# Conflicts: # sql/core/src/main/scala/org/apache/spark/sql/execution/SparkQl.scala # sql/core/src/main/scala/org/apache/spark/sql/execution/command/ddl.scala # sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLCommandSuite.scala # sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala
Test build #54266 has finished for PR 11977 at commit
|
Merging to master. Thanks! |
I have fixed the conflict. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR is to provide native parsing support for two DDL commands:
Describe Database
andAlter Database Set Properties
Based on the Hive DDL document:
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL
1. ALTER DATABASE
Syntax:
ALTER DATABASE
is to add new (key, value) pairs intoDBPROPERTIES
2. DESCRIBE DATABASE
Syntax:
DESCRIBE DATABASE
shows the name of the database, its comment (if one has been set), and its root location on the filesystem. Whenextended
is true, it also shows the database's propertiesHow was this patch tested?
Added the related test cases to
DDLCommandSuite