Details
Description
Index scans should be able to merge index conditions. For example query
SELECT * FROM tbl WHERE a<5 AND a<10
should be reduced to
SELECT * FROM tbl WHERE a<5
Parameters should be handled in a more tricky way:
SELECT * FROM tbl WHERE a<?1 AND a<?2
can be rewritten as
SELECT * FROM tbl WHERE a<MIN(?1, ?2)
where the expression MIN(?1, ?2) should be evaluated right before the execution when parameters are known.
Attachments
Issue Links
- is part of
-
IGNITE-12248 Apache Calcite based query execution engine
- Open
- links to