-
Notifications
You must be signed in to change notification settings - Fork 612
minor: Add databricks
dialect to dialect_from_str
#1416
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
Pull Request Test Coverage Report for Build 10799617540Details
💛 - Coveralls |
Is there anything that you plan implementing for Databricks dialect? I think databricks mostly should be able to use ansidialect. |
I'm not sure I'll be able to implement anything in short term, I've tried to use it from datafusion to realise it's not there. the edge case I've found is please ignore PR if it should not be expose |
dabricks
dialect to dialect_from_str
databricks
dialect to dialect_from_str
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 think this is a reasonable change and improvement. Thank you @milenkovicm and @Dandandan
Maybe it would be great to add some tests to avoid new dialects being missed, but we could do that as a follow on PR
also, as a follow up, once sqlparser has been upgraded (in datafusion), error messages have to handle new dialect as well
maybe generic approach should be taken like in https://github.com/apache/datafusion/blob/6e790cf1f363652c3f2ed64286da75a1d5e88cb9/datafusion-cli/src/helper.rs#L75 |
I generic approach that lists all the dialects programatically makes a lot of sense to me. |
I merged this PR up from main and added a small test |
Co-authored-by: Andrew Lamb <[email protected]>
Databricks dialect is missing in
dialect_from_str
function