- 
                Notifications
    You must be signed in to change notification settings 
- Fork 28.9k
[SPARK-28822][DOC][SQL]Document USE DATABASE in SQL Reference. #25572
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add related statements like ALTER DATABASE, CREATE DATABASE, DROP DATABASE and SHOW DATABASE.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use backtick( ` ) instead of single quote( ' ).
27c67f5    to
    8337134      
    Compare
  
    | @dilipbiswal @gatorsmile Please review and kindly check for merging. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shivusondur Shouldn't { FROM | IN } be in the main syntax diagram if its mentioned as a parameter here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shivusondur How about
`USE` statement is used to set a current database. After a current database is set, the unqualified database artifacts such as tables, functions  and views that are referenced by SQLs are resolved from the current database. 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handled
to make uniform accross all docs
8337134    to
    364e9a5      
    Compare
  
    | @dilipbiswal | 
| LGTM | 
| ok to test | 
| Test build #111013 has finished for PR 25572 at commit  
 | 
| Test build #111014 has finished for PR 25572 at commit  
 | 
| Thanks! Merged to master. | 
| @gatorsmile Thank you very much for fixing and merging. | 
What changes were proposed in this pull request?
Added document reference for USE databse sql command
Why are the changes needed?
For USE database command usage
Does this PR introduce any user-facing change?
It is adding the USE database sql command refernce information in the doc
How was this patch tested?
Attached the test snap
