Skip to content
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

Cast the numeric without the CastOptions #2648

Closed
liukun4515 opened this issue Sep 5, 2022 · 1 comment · Fixed by #2649
Closed

Cast the numeric without the CastOptions #2648

liukun4515 opened this issue Sep 5, 2022 · 1 comment · Fixed by #2649
Labels
arrow Changes to the arrow crate bug

Comments

@liukun4515
Copy link
Contributor

liukun4515 commented Sep 5, 2022

Describe the bug

If a numeric value will be overflow when casted, the kernel of cast will always return NULL.

The behavior of the CAST numeric can't be determined by the CastOptions

To Reproduce

CAST:( INT32(-5)) TO UINT8

Expected behavior

Additional context

@liukun4515
Copy link
Contributor Author

I think other data types have the same issue.
cc @alamb

@tustvold tustvold added the arrow Changes to the arrow crate label Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants