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/12 14:56:00 UTC

[jira] [Updated] (IGNITE-17890) Calcite engine. Support index scan on boolean field

     [ https://issues.apache.org/jira/browse/IGNITE-17890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aleksey Plekhanov updated IGNITE-17890:
---------------------------------------
    Description: 
Currently, if table has index on boolean field it can't be used, since queries like
{code:java}
SELECT * FROM tbl WHERE a = TRUE
{code}
Simplified by Calcite to
{code:java}
SELECT * FROM tbl WHERE a {code}
Condition `{{{}a{}}}` is not supported for building search bounds (see \{{RexUtils.isSupportedTreeComparison()}}) and such an index can't be used. 

  was:
Currently, if table has index on boolean field it can't be used, since queries like
{code:java}
SELECT * FROM tbl WHERE a = TRUE
{code}
Simplified by Calcite to
{code:java}
SELECT * FROM tbl WHERE a {code}
Condition `{{{}a{}}}` is not supported for building search bounds (see {{RexUtils.

isSupportedTreeComparison()}}) and such an index can't be used. 


> Calcite engine. Support index scan on boolean field
> ---------------------------------------------------
>
>                 Key: IGNITE-17890
>                 URL: https://issues.apache.org/jira/browse/IGNITE-17890
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Aleksey Plekhanov
>            Priority: Major
>              Labels: calcite, calcite2-required, calcite3-required
>
> Currently, if table has index on boolean field it can't be used, since queries like
> {code:java}
> SELECT * FROM tbl WHERE a = TRUE
> {code}
> Simplified by Calcite to
> {code:java}
> SELECT * FROM tbl WHERE a {code}
> Condition `{{{}a{}}}` is not supported for building search bounds (see \{{RexUtils.isSupportedTreeComparison()}}) and such an index can't be used. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)