Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
6.6.1, 6.6.2
-
None
-
Untriaged
-
1
-
Unknown
Description
DROP INDEX default.ix10; |
DROP INDEX default.ix11; |
CREATE INDEX ix10 ON default(a,b,c) WHERE type != "_sync:"; |
CREATE INDEX ix11 ON default(a,b1) WHERE type != "_sync:"; |
EXPLAIN SELECT * FROM default WHERE a = 1 AND c = 5 AND type != "_sync:"; |
In 6.6.x it chooses ix11 and not pushing c==5 to indexer.
It works in 7.0.0
As part of the
MB-31203Index selection is based on continuous keys only in 6.6.x. (i.e. same as pre 6.5.0)
Make Index selection is based on continuous keys only and don't include skip keys.
Once Index selection is made skip keys are included in span generation.
This decision is made to fix regressions. This has been addressed in 7.0 and backport is too risky.
Query can add another predicate or USE INDEX is alternative.