Description
In PHOENIX-6400 I had to disable using local index when uncovered columns are referenced in the WHERE clause.
There are two problems:
- The uncovered columns are represented as ProjectedColumnExpression and not correctly added as filters by the WhereCompiler
- The scanner produced in RegionScannerFactory.getWrappedScanner does not handle this correctly.
kozdemir and I brainstormed this today.
What should happen is this:
- Do not add uncovered column expression as filters for local indexes (they would not be evaluated at right time)
- Pass the extra filter expression via a scan attribute
- Do something similar to what we do with conditional expressions (see PhoenixIndexBuilder.executeAtomicOp), where we assemble the complete tuple, then run the filter expression over it.
This would probably require some surgery, so filing it here as an Improvement in case someone signs up for it
Attachments
Attachments
Issue Links
- Blocked
-
PHOENIX-6400 Do no use local index with uncovered columns in the WHERE clause.
- Resolved
- links to
There are no Sub-Tasks for this issue.