-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support alternate formats for unparsing datetime
to timestamp
and interval
#11466
Support alternate formats for unparsing datetime
to timestamp
and interval
#11466
Conversation
* use timestamp as the identifier for date64 * rename * implement CustomDialectBuilder * fix
--------- Co-authored-by: Phillip LeBlanc <[email protected]>
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.
Thank you @y-f-u -- other than the comments on CustomDialectBuilder
I think this PR looks really nice to me 🙏
Co-authored-by: Andrew Lamb <[email protected]>
datetime
to timestamp
and interval
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.
Thanks @y-f-u -- this looks great to me 🙏
… `interval` (apache#11466) * Unparser rule for datatime cast (apache#10) * use timestamp as the identifier for date64 * rename * implement CustomDialectBuilder * fix * dialect with interval style (apache#11) --------- Co-authored-by: Phillip LeBlanc <[email protected]> * fmt * clippy * doc * Update datafusion/sql/src/unparser/expr.rs Co-authored-by: Andrew Lamb <[email protected]> * update the doc for CustomDialectBuilder * fix doc test --------- Co-authored-by: Phillip LeBlanc <[email protected]> Co-authored-by: Andrew Lamb <[email protected]>
… `interval` (apache#11466) * Unparser rule for datatime cast (apache#10) * use timestamp as the identifier for date64 * rename * implement CustomDialectBuilder * fix * dialect with interval style (apache#11) --------- Co-authored-by: Phillip LeBlanc <[email protected]> * fmt * clippy * doc * Update datafusion/sql/src/unparser/expr.rs Co-authored-by: Andrew Lamb <[email protected]> * update the doc for CustomDialectBuilder * fix doc test --------- Co-authored-by: Phillip LeBlanc <[email protected]> Co-authored-by: Andrew Lamb <[email protected]>
… `interval` (apache#11466) * Unparser rule for datatime cast (#10) * use timestamp as the identifier for date64 * rename * implement CustomDialectBuilder * fix * dialect with interval style (#11) --------- Co-authored-by: Phillip LeBlanc <[email protected]> * fmt * clippy * doc * Update datafusion/sql/src/unparser/expr.rs Co-authored-by: Andrew Lamb <[email protected]> * update the doc for CustomDialectBuilder * fix doc test --------- Co-authored-by: Phillip LeBlanc <[email protected]> Co-authored-by: Andrew Lamb <[email protected]>
Which issue does this PR close?
This PR address more dialect variety in unparser:
Rationale for this change
SQLStandard format interval is needed for dbms like dremio.
datetime
is missing for certain dbms too: dremio, trino.What changes are included in this PR?
See "What issue does this PR close"
Are these changes tested?
Yes, unit tests added
Are there any user-facing changes?
n/a. But changed one
CustomDialect::new
to be deprecated in favor ofCustomDialectBuilder