-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
prefix index + index join - innerWorker panicked #23899
Comments
A simpler method to reproduce: CREATE TABLE `tbl_5` (
`col_25` double NOT NULL,
`col_26` decimal(15,4) NOT NULL DEFAULT '916569.109',
`col_27` blob NOT NULL,
PRIMARY KEY (`col_27`(1),`col_25`) /*T![clustered_index] CLUSTERED */
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
CREATE TABLE `tbl_3` (
`col_15` enum('Alice','Bob','Charlie','David') NOT NULL DEFAULT 'Bob',
`col_16` date NOT NULL,
`col_17` smallint(5) unsigned NOT NULL,
`col_18` enum('Alice','Bob','Charlie','David') NOT NULL,
`col_19` binary(65) NOT NULL DEFAULT 'uC',
PRIMARY KEY (`col_18`,`col_19`,`col_17`) /*T![clustered_index] CLUSTERED */,
UNIQUE KEY `idx_10` (`col_15`,`col_18`,`col_16`,`col_17`),
KEY `idx_11` (`col_16`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
INSERT INTO `tbl_3` VALUES ('Alice','1971-03-07',29994,'Alice',x'6745710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');
select /*+ nth_plan(1) */ tbl_3.col_19 from tbl_3 where col_19 in ( select col_27 from tbl_5 where col_15 = 'Alice' ); And it seems related to prefix index + index lookup join and also related to several recent issues #23722 #23653. |
/assign @lzmhhh123 |
Confirm it has been fixed. |
Please edit this comment or add a new comment to complete the following informationNot a bug
Duplicate bug
BugNote: Make Sure that 'component', and 'severity' labels are added 1. Root Cause Analysis (RCA) (optional)2. Symptom (optional)3. All Trigger Conditions (optional)4. Workaround (optional)5. Affected versions6. Fixed versions |
@lzmhhh123 PTAL |
@zyguan The screenshot is not complete. Could you provide the reproduce SQL by text? |
#23899 (comment) this one. |
It has been fixed by #24568 |
( FixedVersions AffectedVersions ) fields are empty. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
source cluster_index.PK_MULTI_COL_3049.000000000.txt
2. What did you expect to see? (Required)
query successfully
3. What did you see instead (Required)
tidb report an error
tidb log
4. What is your TiDB version? (Required)
release-5.0: e2740f5
The text was updated successfully, but these errors were encountered: