Skip to content

Unexpected Result in TiFlash 3 #47286

Open
@bajinsheng

Description

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE t0(c0 BOOL, PRIMARY KEY(c0));
CREATE TABLE t1(c0 BOOL, PRIMARY KEY(c0));
INSERT INTO t0(c0) VALUES (false);
INSERT INTO t1(c0) VALUES (false);
ALTER TABLE t0 SET TIFLASH REPLICA 1;
SELECT SLEEP(3);

SELECT * FROM  t1 NATURAL JOIN t0 WHERE NOT t0.c0; -- {0}
SELECT /*+ READ_FROM_STORAGE(TIFLASH[t0])*/ * FROM  t1 NATURAL JOIN t0 WHERE NOT t0.c0; -- empty

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

Both queries return the same result.

3. What did you see instead (Required)

Both queries return different results.

4. What is your TiDB version? (Required)

| Release Version: v7.4.0-alpha
Edition: Community
Git Commit Hash: c62fc67cabce7c1cf2ae7fb1a46777d57fedd109
Git Branch: heads/refs/tags/v7.4.0-alpha
UTC Build Time: 2023-09-25 14:34:33
GoVersion: go1.21.1
Race Enabled: false
Check Table Before Drop: false
Store: tikv |

Activity

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

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions