Open zhangysh1995 opened 4 years ago
I think it's expected behavior. In MySQL:
mysql> show warnings;
+---------+------+-----------------------------------------+
| Level | Code | Message |
+---------+------+-----------------------------------------+
| Warning | 1292 | Truncated incorrect DOUBLE value: 'foo' |
| Warning | 1292 | Truncated incorrect DOUBLE value: 'foo' |
| Warning | 1292 | Truncated incorrect DOUBLE value: 'foo' |
| Warning | 1292 | Truncated incorrect DOUBLE value: 'foo' |
| Warning | 1292 | Truncated incorrect DOUBLE value: 'foo' |
| Warning | 1292 | Truncated incorrect DOUBLE value: 'bar' |
| Warning | 1292 | Truncated incorrect DOUBLE value: 'bar' |
| Warning | 1292 | Truncated incorrect DOUBLE value: 'bar' |
| Warning | 1292 | Truncated incorrect DOUBLE value: 'bar' |
| Warning | 1292 | Truncated incorrect DOUBLE value: 'bar' |
+---------+------+-----------------------------------------+
10 rows in set (0.00 sec)
But where does the 'FLOAT' come from? There isn't any column with such types. I would also consider it as an undesired behavior.
https://dev.mysql.com/doc/refman/8.0/en/type-conversion.html FYI
In all other cases, the arguments are compared as floating-point (real) numbers. For example, a comparison of string and numeric operands takes place as a comparison of floating-point numbers.
I think there is a similar issue here https://bugs.mysql.com/bug.php?id=46641&error=un It is more like a feature than a bug.
/bug no bug
More parameters are required.
/bug not bug
More parameters are required.
More parameters are required.
/bug non-bug
Bug Report
1. What did you do?
2. What did you expect to see?
No warnings.
3. What did you see instead?
There is no column with
FLOAT
from the tables.4. What version of TiDB are you using? (
tidb-server -V
or runselect tidb_version();
on TiDB)Git log:
With
select tidb_version();
: