matrixone icon indicating copy to clipboard operation
matrixone copied to clipboard

[Bug]: float type, select ... where col=flo; unmatch.

Open tianyahui-python opened this issue 3 years ago • 0 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

CREATE TABLE test_table (pk INT DEFAULT NULL, fl FLOAT DEFAULT NULL,dou DOUBLE DEFAULT NULL, PRIMARY KEY (pk));

INSERT INTO test_table VALUES(0, 1.2345678, 1.223344556677889900), (1, 1.8765432, 1.223344556677889900);

mysql> select * from test_table; +------+-----------+------------------+ | pk | fl | dou | +------+-----------+------------------+ | 0 | 1.2345678 | 1.22334455667789 | | 1 | 1.8765432 | 1.22334455667789 | +------+-----------+------------------+

mysql> select * from test_table where fl=1.2345678; Empty set (0.00 sec)

Expected Behavior

mysql> select * from test_table where fl=1.2345678;

+------+-----------+------------------+ | pk | fl | dou | +------+-----------+------------------+ | 0 | 1.2345678 | 1.22334455667789 | +------+-----------+------------------+

Steps to Reproduce

No response

Additional information

No response

tianyahui-python avatar Aug 12 '22 09:08 tianyahui-python