-
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
incorrect query result using multi-value index #52395
Comments
lost the [14:47:17]TiDB root:test> EXPLAIN SELECT /*+ USE_INDEX_MERGE(`t6ac4654f` )*/ MIN(`t6ac4654f`.`col_37`) AS `r0` FROM `t6ac4654f` WHERE `t6ac4654f`.`col_38` BETWEEN '1984-12-13' AND '1975-01-28' OR JSON_CONTAINS(`t6ac4654f`.`col_37`, '138480458355390957') GROUP BY `t6ac4654
-> f`.`col_38` HAVING `t6ac4654f`.`col_38`!='1988-03-22';
+------------------------------+---------+-----------+-------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
| id | estRows | task | access object | operator info |
+------------------------------+---------+-----------+-------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
| Projection_8 | 0.05 | root | | test.t6ac4654f.col_37->Column#7 |
| └─IndexMerge_13 | 35.47 | root | | type: union |
| ├─TableRangeScan_9(Build) | 53.25 | cop[tikv] | table:t6ac4654f | range:[-inf,1988-03-22 00:00:00), (1988-03-22 00:00:00,+inf], keep order:false, stats:pseudo |
| ├─IndexRangeScan_10(Build) | 0.08 | cop[tikv] | table:t6ac4654f, index:idx_17(cast(`col_37` as unsigned array), col_38) | range:[138480458355390957,138480458355390957], keep order:false, stats:pseudo |
| └─Selection_12(Probe) | 35.47 | cop[tikv] | | ne(test.t6ac4654f.col_38, 1988-03-22 00:00:00.000000) |
| └─TableRowIDScan_11 | 53.28 | cop[tikv] | table:t6ac4654f | keep order:false, stats:pseudo |
+------------------------------+---------+-----------+-------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
6 rows in set |
/type regression |
Regression Analysis |
Regression Analysis |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
27e470a
The text was updated successfully, but these errors were encountered: