Skip to content

Conversation

@y-f-u
Copy link
Contributor

@y-f-u y-f-u commented Jun 24, 2024

Which issue does this PR close?

Basic support for decimal unparsing

Rationale for this change

Decimal is a common type in many sql engines, custom data provider will need this when query involves decimal

What changes are included in this PR?

Convert decimal 128 and 256 to Ast type.
Convert both of them into string.

Are these changes tested?

Yes

Are there any user-facing changes?

No

@github-actions github-actions bot added the sql SQL Planner label Jun 24, 2024
@y-f-u y-f-u changed the title decimal support for unpraser decimal support for unparser Jun 24, 2024
y-f-u and others added 2 commits June 24, 2024 14:42
Co-authored-by: Phillip LeBlanc <phillip@leblanc.tech>
Copy link
Contributor

@alamb alamb left a 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 and @phillipleblanc for the review

@alamb alamb merged commit f0ef0e6 into apache:main Jun 24, 2024
findepi pushed a commit to findepi/datafusion that referenced this pull request Jul 16, 2024
* decimal support for unparser

* Update datafusion/sql/src/unparser/expr.rs

Co-authored-by: Phillip LeBlanc <phillip@leblanc.tech>

* cargo fmt

---------

Co-authored-by: Phillip LeBlanc <phillip@leblanc.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sql SQL Planner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants