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

Unexpected Result by BROADCAST_JOIN in TiFlash #47020

Closed
bajinsheng opened this issue Sep 17, 2023 · 2 comments
Closed

Unexpected Result by BROADCAST_JOIN in TiFlash #47020

bajinsheng opened this issue Sep 17, 2023 · 2 comments
Labels
fuzz/sqlancer may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 severity/major sig/execution SIG execution type/bug This issue is a bug.

Comments

@bajinsheng
Copy link

Bug Report

The query returns a different result under the hint BROADCAST_JOIN, which should not affect the result.

1. Minimal reproduce step (Required)

CREATE TABLE t0(c0 CHAR, PRIMARY KEY(c0));
CREATE TABLE t1(c0 BOOL);
INSERT INTO t0 VALUES ('a');
INSERT INTO t1 VALUES (true);
ANALYZE TABLE t0;
ANALYZE TABLE t1;
ALTER TABLE t0 SET TIFLASH REPLICA 1;
ALTER TABLE t1 SET TIFLASH REPLICA 1;
SELECT SLEEP(5);

SELECT t1.c0 FROM t1, t0 WHERE LOG(t0.c0); -- empyt
SELECT /*+ BROADCAST_JOIN(t0, PRIMARY)*/t1.c0 FROM t1, t0 WHERE LOG(t0.c0); -- {1}

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

Two queries return the same result.

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

| Release Version: v7.4.0-alpha
Edition: Community
Git Commit Hash: 0ccc9e170563763f46a2c62671a56b8581f6bd5d
Git Branch: heads/refs/tags/v7.4.0-alpha
UTC Build Time: 2023-09-16 14:33:29
GoVersion: go1.21.1
Race Enabled: false
Check Table Before Drop: false
Store: tikv |
@bajinsheng bajinsheng added the type/bug This issue is a bug. label Sep 17, 2023
@ti-chi-bot ti-chi-bot bot added may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 labels Sep 19, 2023
@aytrack
Copy link
Contributor

aytrack commented Sep 19, 2023

releated #47019

@zanmato1984
Copy link
Contributor

Duplicate of #46601

Closing. Feel free to reopen if you observe any further issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fuzz/sqlancer may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 severity/major sig/execution SIG execution type/bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

4 participants