We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.1.5
文本类型小数无法使用bigint转数值 decimal(38,0) + decimal(38,8)的情况下会返回整数
CAST("123.123" AS BIGINT) 能返回123而不是null; CAST(123 AS DECIMAL(38,0))+CAST(123.123 AS DECIMAL(38,8) 返回小数而不是整数
No response
The text was updated successfully, but these errors were encountered:
CAST("123.123" AS BIGINT) 能返回123而不是null;
#38847 在这个pr里面支持了,但是没有合入到2.1的分支,合进了3.0. 之前的cast string to int的行为类似pg,比较严格。 https://dbfiddle.uk/OsHBViAA
Sorry, something went wrong.
SELECT CAST(123.123 AS BIGINT);
No branches or pull requests
Search before asking
Version
2.1.5
What's Wrong?
文本类型小数无法使用bigint转数值
decimal(38,0) + decimal(38,8)的情况下会返回整数
What You Expected?
CAST("123.123" AS BIGINT) 能返回123而不是null;
CAST(123 AS DECIMAL(38,0))+CAST(123.123 AS DECIMAL(38,8) 返回小数而不是整数
How to Reproduce?
No response
Anything Else?
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: