-
-
Notifications
You must be signed in to change notification settings - Fork 648
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Move USE statement from Snowflake to ANSI ⏪ * Add parser tests for USE statements in MySQL and Snowflake ✅ * Update CHANGELOG ✏️ * Fix due to decorator removed when merging
- Loading branch information
Daniel Mateus Pires
committed
Apr 12, 2021
1 parent
f32e63f
commit cf15298
Showing
7 changed files
with
69 additions
and
17 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use my_db; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
file: | ||
statement: | ||
use_statement: | ||
keyword: use | ||
object_reference: | ||
identifier: my_db | ||
statement_terminator: ; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
use role my_role; | ||
|
||
use warehouse my_warehouse; | ||
|
||
use database my_database; | ||
|
||
use schema my_schema; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
file: | ||
- statement: | ||
use_statement: | ||
- keyword: use | ||
- keyword: role | ||
- object_reference: | ||
identifier: my_role | ||
- statement_terminator: ; | ||
- statement: | ||
use_statement: | ||
- keyword: use | ||
- keyword: warehouse | ||
- object_reference: | ||
identifier: my_warehouse | ||
- statement_terminator: ; | ||
- statement: | ||
use_statement: | ||
- keyword: use | ||
- keyword: database | ||
- object_reference: | ||
identifier: my_database | ||
- statement_terminator: ; | ||
- statement: | ||
use_statement: | ||
- keyword: use | ||
- keyword: schema | ||
- object_reference: | ||
identifier: my_schema | ||
- statement_terminator: ; |