-
Notifications
You must be signed in to change notification settings - Fork 0
Add ShowObjects statement #2
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
We can merge for now.
Snowflake spec https://docs.snowflake.com/en/sql-reference/sql/show-objects |
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.
In general, I'm fine with this approach. However, I think we can move parse_show_objects
to parser/mod.rs itself. Even if it's really limited to Snowflake for now I think it can be found in other databases in the future. At least, Materialize supports SHOW OBJECTS
statement.
We can try upstreaming the current solution as is and we'll see suggestions on external review.
40321ce
@@ -13670,8 +13670,8 @@ impl<'a> Parser<'a> { | |||
} | |||
false | |||
} | |||
|
|||
fn parse_show_stmt_options(&mut self) -> Result<ShowStatementOptions, ParserError> { | |||
|
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.
nit: remove redundant spaces 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.
They had the space before me. All their functions actually have spaces before them for some reason :)
* Added ShowObjects statement * Parsing, next tests * Small comment * Tests done according to other SHOW statements * Removed unnecessary comments
* Added ShowObjects statement * Parsing, next tests * Small comment * Tests done according to other SHOW statements * Removed unnecessary comments
* Add ShowObjects statement (#2) * Added ShowObjects statement * Parsing, next tests * Small comment * Tests done according to other SHOW statements * Removed unnecessary comments * Fix test in other that object cases. Cargo fmt. --------- Co-authored-by: DanCodedThis <94703934+DanCodedThis@users.noreply.github.com>
* Added ShowObjects statement * Parsing, next tests * Small comment * Tests done according to other SHOW statements * Removed unnecessary comments
* Added ShowObjects statement * Parsing, next tests * Small comment * Tests done according to other SHOW statements * Removed unnecessary comments
* Added ShowObjects statement * Parsing, next tests * Small comment * Tests done according to other SHOW statements * Removed unnecessary comments
No description provided.