-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Inconsistent result of the same queries, related to index merge, null #41273
Labels
affects-5.4
This bug affects 5.4.x versions.
affects-6.0
affects-6.1
affects-6.2
affects-6.3
affects-6.4
affects-6.5
affects-6.6
fuzz/schrddl
severity/critical
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Comments
wjhuang2016
changed the title
Inconsistent result of the same quires
Inconsistent result of the same quires, related to index merge, null
Feb 10, 2023
wjhuang2016
changed the title
Inconsistent result of the same quires, related to index merge, null
Inconsistent result of the same queries, related to index merge, null
Feb 10, 2023
jebter
added
sig/planner
SIG: Planner
severity/critical
affects-5.4
This bug affects 5.4.x versions.
affects-6.1
affects-6.5
labels
Feb 11, 2023
ti-chi-bot
added
may-affects-4.0
This bug maybe affects 4.0.x versions.
may-affects-5.0
This bug maybe affects 5.0.x versions.
may-affects-5.1
This bug maybe affects 5.1.x versions.
may-affects-5.2
This bug maybe affects 5.2.x versions.
may-affects-5.3
This bug maybe affects 5.3.x versions.
may-affects-6.0
may-affects-6.2
may-affects-6.3
may-affects-6.4
may-affects-6.6
labels
Feb 11, 2023
Simplified reproduction:
There's something wrong when one of the children of IndexMerge(union) is TableFullScan, actRows should be 3 but 0. @time-and-fate @guo-shaoge please take a look at this issue. |
12 tasks
time-and-fate
removed
may-affects-4.0
This bug maybe affects 4.0.x versions.
may-affects-5.1
This bug maybe affects 5.1.x versions.
may-affects-5.2
This bug maybe affects 5.2.x versions.
may-affects-5.3
This bug maybe affects 5.3.x versions.
may-affects-5.0
This bug maybe affects 5.0.x versions.
may-affects-6.0
may-affects-6.2
labels
Feb 14, 2023
time-and-fate
added
affects-6.0
affects-6.2
affects-6.3
affects-6.4
affects-6.6
and removed
may-affects-6.3
may-affects-6.4
may-affects-6.6
labels
Feb 14, 2023
Renamed tables and columns: CREATE TABLE t (
a set('nwbk','r5','1ad3u','van','ir1z','y','9m','f1','z','e6yd','wfev') NOT NULL DEFAULT 'ir1z,f1,e6yd',
b enum('soo2','4s4j','qi9om','8ue','i71o','qon','3','3feh','6o1i','5yebx','d') NOT NULL DEFAULT '8ue',
c varchar(66) DEFAULT '13mdezixgcn',
PRIMARY KEY (`a`,`b`) /*T![clustered_index] CLUSTERED */,
UNIQUE KEY `ib` (`b`),
KEY `ia` (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=ascii COLLATE=ascii_bin;
INSERT INTO t VALUES('ir1z,f1,e6yd','i71o','13mdezixgcn'),('ir1z,f1,e6yd','d','13mdezixgcn'),('nwbk','8ue','13mdezixgcn');
select * from t where a between 'e6yd' and 'z' or b <> '8ue';
select /*+ use_index_merge(t) */ * from t where a between 'e6yd' and 'z' or b <> '8ue'; |
This was referenced Feb 14, 2023
Open
Merged
ti-chi-bot
added a commit
that referenced
this issue
Feb 14, 2023
blacktear23
pushed a commit
to blacktear23/tidb
that referenced
this issue
Feb 15, 2023
…erge path for `or` (pingcap#41361) close pingcap#41273, close pingcap#41293
ghazalfamilyusa
pushed a commit
to ghazalfamilyusa/tidb
that referenced
this issue
Feb 15, 2023
…erge path for `or` (pingcap#41361) close pingcap#41273, close pingcap#41293
ti-chi-bot
added a commit
that referenced
this issue
Mar 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-5.4
This bug affects 5.4.x versions.
affects-6.0
affects-6.1
affects-6.2
affects-6.3
affects-6.4
affects-6.5
affects-6.6
fuzz/schrddl
severity/critical
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
Two queries got the same results.
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: