-
Notifications
You must be signed in to change notification settings - Fork 605
Allow to use the TABLE keyword in DESC|DESCRIBE|EXPLAIN TABLE statement #1351
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
@@ -7972,10 +7972,13 @@ impl<'a> Parser<'a> { | |||
_ => {} | |||
} | |||
|
|||
// only allow to use TABLE keyword for DESC|DESCRIBE statement | |||
let has_table_keyword = self.parse_keyword(Keyword::TABLE); |
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.
I didn't add the dialect guard since the TABLE
keyword is allowed in multiple dialects(Snowflake and ClicHouse), and it should be good to let the downstream determine if it's a valid syntax.
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.
See #1385
Pull Request Test Coverage Report for Build 10070975254Details
💛 - Coveralls |
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.
LGTM! cc @alamb
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.
@samuelcolvin found a seeming regression due to this change here: #1385 |
This closes #1160.