-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
wrong results when IF function along with float argument #11601
Comments
In tidb, almost all builtIn*Sig function use the result of |
|
Yes,I have fix the logic op #11587 many builtinfunc doesnt implement |
|
Bug Report
Please answer these questions before submitting your issue. Thanks!
What did you do?
If possible, provide a recipe for reproducing the error.
SELECT IF(0.1, 1, 2) FROM t1;
What did you expect to see?
+---------------+
| IF(0.1, 1, 2) |
+---------------+
| 1 |
+---------------+
1 row in set (0.00 sec)
What did you see instead?
+---------------+
| IF(0.1, 1, 2) |
+---------------+
| 2 |
+---------------+
1 row in set (0.00 sec)
What version of TiDB are you using (
tidb-server -V
or runselect tidb_version();
on TiDB)?Release Version: None
Git Commit Hash: None
Git Branch: None
UTC Build Time: None
GoVersion: None
Race Enabled: false
TiKV Min Version: 2.1.0-alpha.1-ff3dd160846b7d1aed9079c389fc188f7f5ea13e
Check Table Before Drop: false
The text was updated successfully, but these errors were encountered: