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

[Bug] The cast function does not convert string to int as expected #36038

Closed
3 tasks done
yongjinhou opened this issue Jun 7, 2024 · 1 comment
Closed
3 tasks done

Comments

@yongjinhou
Copy link
Contributor

yongjinhou commented Jun 7, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Version

2.0.11 & master

What's Wrong?

select cast("123.123" as tinyint)
实际值: None
期望值: 123

select cast("123.123" as smallint)
实际值: None
期望值: 123

select cast("123.123" as int)
实际值: None
期望值: 123

select cast("123.123" as bigint)
实际值: None
期望值: 123

What You Expected?

输出符合期望值

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@morrySnow
Copy link
Contributor

should not change this behavior. becaues be return null when do cast('123.123' as int). we should let fe return same result with be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants