-
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
Function name is missing in error message. #11181
Comments
Confirming that this can still be reproduced against master. tidb> select tidb_version()\G
*************************** 1. row ***************************
tidb_version(): Release Version: v4.0.0-beta.2-745-g2b0b34b88
Edition: Community
Git Commit Hash: 2b0b34b88e43ad20f4e5ab1a0b5daf7ae6ff6046
Git Branch: master
UTC Build Time: 2020-07-09 10:12:32
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
1 row in set (0.00 sec)
tidb> select INET_ATON( 35 ) DIV -1;
ERROR 1690 (22003): BIGINT UNSIGNED value is out of range in '(35, -1)' |
/pick-up |
It is not a pickable issue! MoreTip : If you want this issue to be picked, you need to add a Warning: None |
/pick-up |
Pick up success. |
/pick-up |
This issue already picked by wangbeib. |
@wangbeib You did not submit PR within 7 days, so give up automatically. |
/pick-up |
Pick up success. |
/give-up |
Give up success. |
/pick-up |
Pick up success. |
/give-up |
Give up success. |
/pick-up |
Pick up success. |
/give-up |
Give up success. |
According to |
/pick-up |
Pick up success. |
/give-up |
Give up success. |
@SunRunAway Hi, I am new to TiDB, and want to fix this issue, but something confused me, please give me some help. before: tidb/expression/builtin_arithmetic.go Line 830 in 4e471d7
after: return 0, true, types.ErrOverflow.GenWithStackByArgs("AAAABIGINT UNSIGNED", fmt.Sprintf("(%s DIV %s)", "sds", s.args[1].String())) and in the unit test, it's ok, the test failed. tidb/expression/builtin_arithmetic_test.go Line 381 in 4e471d7
but when I make server, and try to test it in mysql client:
|
To put it simply, the final error result is generated in executor/builtin_arithmetic_vec.go:716. The test raised error because it's testing row version of evaluation function Your query will call row-based |
@Tjianke I got it, thanks. |
I think this issue is not easy, because in plan building, the INET_ATON( 35 ) will be calculated first, so when start to run DIV function, we just get constant 35 and can not get any Information about INET_ATON. |
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
tidb-server -V
or runselect tidb_version();
on TiDB)?fdbc149
SIG slack channel
#sig-exec
Score
Mentor
The text was updated successfully, but these errors were encountered: