Skip to content
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

tests/tidb-ci/fullstack-test-dt/issue_1425.test fail #7334

Closed
Lloyd-Pottiger opened this issue Apr 21, 2023 · 3 comments · Fixed by #7349
Closed

tests/tidb-ci/fullstack-test-dt/issue_1425.test fail #7334

Lloyd-Pottiger opened this issue Apr 21, 2023 · 3 comments · Fixed by #7349
Assignees

Comments

@Lloyd-Pottiger
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

mysql> create table test.t (id int, value decimal(7,4), c1 int, c2 int);

mysql> insert into test.t values (1,1.9285,54,28), (1,1.9286,54,28);

mysql> alter table test.t set tiflash replica 1;

mysql> use test; set session tidb_isolation_read_engines='tiflash'; select * from t where value = 54/28;

2. What did you expect to see? (Required)

nothing

3. What did you see instead (Required)

+------+--------+------+------+
| id   | value  | c1   | c2   |
+------+--------+------+------+
|    1 | 1.9286 |   54 |   28 |
+------+--------+------+------+

4. What is your TiFlash version? (Required)

master

@yibin87
Copy link
Contributor

yibin87 commented Apr 23, 2023

Create a tidb issue to track the incorrect result of 'where value = 54 / 28': pingcap/tidb#43311

@yibin87
Copy link
Contributor

yibin87 commented Apr 23, 2023

However, for
select * from t where value = c1 / c2;
TiKV returns empty set which is aligned with mysql, while tiflash returns one row:
mysql> select * from t where value = c1 / c2;
+------+--------+------+------+
| id | value | c1 | c2 |
+------+--------+------+------+
| 1 | 1.9286 | 54 | 28 |
+------+--------+------+------+
1 row in set (0.13 sec)

Confirmed that, this is expected behavior for tiflash, since mysql's runtime decimal behavior is too strange for us to meet.

ti-chi-bot bot pushed a commit that referenced this issue Apr 25, 2023
@Lloyd-Pottiger
Copy link
Contributor Author

closed by pingcap/tidb#43329

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants