-
-
Notifications
You must be signed in to change notification settings - Fork 234
Improvements to CAST
and CONVERT
functions
#1843
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
Does this partially address this one? I can't tell. |
It doesn't directly address the issue with |
FLOAT
and DOUBLE
with CAST
and CONVERT
CAST
and CONVERT
functions
…nstance through WithChildren
This reverts commit 27f3b44.
…peScale if they are set (mostly to avoid changing query plan test data)
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.
Overall LGTM.
Need bounds checking to prevent some panics.
Suggestion for erroring on invalid decimal types.
This PR adds support for casting/converting to
FLOAT
andDOUBLE
types with theCAST
andCONVERT
functions. It also adds support for length (aka precision) and scale type constraints (e.g.CAST(1.2345 AS DECIMAL(3,2))
).Parser support for
DOUBLE
andFLOAT
withCAST
andCONVERT
: dolthub/vitess#249Fixes: dolthub/dolt#5835