[ 
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)

Reply via email to