You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Aleksey Plekhanov (Jira)" <ji...@apache.org> on 2022/10/19 16:48:00 UTC
[jira] [Assigned] (IGNITE-17889) Calcite engine. Avoid full index scans in case of null dynamic parameter
[ https://issues.apache.org/jira/browse/IGNITE-17889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksey Plekhanov reassigned IGNITE-17889:
------------------------------------------
Assignee: Aleksey Plekhanov
> Calcite engine. Avoid full index scans in case of null dynamic parameter
> ------------------------------------------------------------------------
>
> Key: IGNITE-17889
> URL: https://issues.apache.org/jira/browse/IGNITE-17889
> Project: Ignite
> Issue Type: Improvement
> Reporter: Aleksey Plekhanov
> Assignee: Aleksey Plekhanov
> Priority: Major
> Labels: calcite, calcite2-required, calcite3-required
>
> Currently, queries like:
> {code:java}
> SELECT * FROM tbl WHERE a >= ?
> {code}
> Should return no rows if dynamic parameter is null, but can be downgraded to full index scan in case table have index on column {{a}} (ASCENDING order, NULLS FIRST).
> We should somehow analyse nulls in search bounds and return empty rows iterator for regular field conditions (`=`, `<`, '>`, etc). But also nulls should be processed as is in search bounds for conditions like `IS NULL`, `IS NOT NULL`, `IS NOT DISTINCT FROM` (the last one not supported currently).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)