[SPARK-28802][DOC][SQL]Document DESCRIBE DATABASE statement in SQL Reference#25528
[SPARK-28802][DOC][SQL]Document DESCRIBE DATABASE statement in SQL Reference#25528kevinyu98 wants to merge 7 commits intoapache:masterfrom
Conversation
|
@kevinyu98 Can you please attach a screen-shot of the page ? |
There was a problem hiding this comment.
Can you provide any output? this doc page isn't giving much additional info (though there is not a lot to know, granted)
a3595ac to
25db698
Compare
| ### Example | ||
| {% highlight sql %} | ||
| -- Create employees DATABASE | ||
| CREATE DATABASE EMPLOYEES COMMENT 'For software companies'; |
There was a problem hiding this comment.
@kevinyu98 lets use lowercase for EMPLOYEES to match other PRS..
|
|
||
| -- Describe employees DATABASE. | ||
| -- Returns Database Name, Description and Root location of the filesystem for the employees DATABASE | ||
| DESCRIBE DATABASE Employees; |
| CREATE DATABASE EMPLOYEES COMMENT 'For software companies'; | ||
|
|
||
| -- Describe employees DATABASE. | ||
| -- Returns Database Name, Description and Root location of the filesystem for the employees DATABASE |
There was a problem hiding this comment.
@kevinyu98 Can we please put DATABASE in another line with a comment marker. ?
| -- Describe employees DATABASE. | ||
| -- Returns Database Name, Description and Root location of the filesystem for the employees DATABASE | ||
| DESCRIBE DATABASE Employees; | ||
| +-------------------------+-----------------------------+ |
There was a problem hiding this comment.
@kevinyu98 Can we keep the results 2 spaces to the right to match other PRs.
|
|
||
| {% highlight sql %} | ||
| -- Create employees DATABASE | ||
| CREATE DATABASE EMPLOYEES COMMENT 'For software companies'; |
| -- Alter employees database to set DBPROPERTIES | ||
| ALTER DATABASE EMPLOYEES SET DBPROPERTIES ('Create-by' = 'Kevin', 'Create-date' = '09/01/2019'); | ||
|
|
||
| -- Describe employees DATABASE with EXTENDED option to the database properties |
There was a problem hiding this comment.
@kevinyu98 "to return additional database properties"
|
|
||
| {% highlight sql %} | ||
| -- Create deployment SCHEMA | ||
| CREATE SCHEMA DEPLOYMENT comment 'Deployment environment'; |
|
LGTM |
|
ok to test |
|
Test build #110203 has finished for PR 25528 at commit
|
|
LGTM Thanks! Merged to master. |
|
@gatorsmile thank a lot. |
|
retest this please |
…eference ### What changes were proposed in this pull request? Document DESCRIBE DATABASE statement in SQL Reference ### Why are the changes needed? To complete the SQL Reference ### Does this PR introduce any user-facing change? Yes #### Before There is no documentation for this command in sql reference #### After   ### How was this patch tested? Used jekyll build and serve to verify Closes apache#25528 from kevinyu98/sql-ref-describe. Lead-authored-by: Kevin Yu <qyu@us.ibm.com> Co-authored-by: Xiao Li <gatorsmile@gmail.com> Signed-off-by: Xiao Li <gatorsmile@gmail.com>
What changes were proposed in this pull request?
Document DESCRIBE DATABASE statement in SQL Reference
Why are the changes needed?
To complete the SQL Reference
Does this PR introduce any user-facing change?
Yes
Before
There is no documentation for this command in sql reference
After
How was this patch tested?
Used jekyll build and serve to verify