[
https://issues.apache.org/jira/browse/IGNITE-21131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17800703#comment-17800703
]
Ignite TC Bot commented on IGNITE-21131:
----------------------------------------
{panel:title=Branch: [pull/11126/head] Base: [master] : No blockers
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/11126/head] Base: [master] : New Tests
(14)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Calcite SQL{color} [[tests
14|https://ci2.ignite.apache.org/viewLog.html?buildId=7674125]]
* {color:#013220}IgniteCalciteTestSuite:
IndexMultiRangeScanIntegrationTest.testRangeIntersection[dynamicParams=true] -
PASSED{color}
* {color:#013220}IgniteCalciteTestSuite:
IndexMultiRangeScanIntegrationTest.testOrdering[dynamicParams=true] -
PASSED{color}
* {color:#013220}IgniteCalciteTestSuite:
IndexMultiRangeScanIntegrationTest.testInvalidRange[dynamicParams=true] -
PASSED{color}
* {color:#013220}IgniteCalciteTestSuite:
IndexMultiRangeScanIntegrationTest.testNot[dynamicParams=false] - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite:
IndexMultiRangeScanIntegrationTest.testRangeIntersection[dynamicParams=false] -
PASSED{color}
* {color:#013220}IgniteCalciteTestSuite:
IndexMultiRangeScanIntegrationTest.testNulls[dynamicParams=true] - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite:
IndexMultiRangeScanIntegrationTest.testNot[dynamicParams=true] - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite:
IndexMultiRangeScanIntegrationTest.testIn[dynamicParams=true] - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite:
IndexMultiRangeScanIntegrationTest.testRange[dynamicParams=true] - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite:
IndexMultiRangeScanIntegrationTest.testOrdering[dynamicParams=false] -
PASSED{color}
* {color:#013220}IgniteCalciteTestSuite:
IndexMultiRangeScanIntegrationTest.testRange[dynamicParams=false] -
PASSED{color}
... and 3 new tests
{panel}
[TeamCity *--> Run :: All*
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=7668130&buildTypeId=IgniteTests24Java8_RunAll]
> Calcite engine. OR operator with dynamic parameters can't be used for index
> scans
> ---------------------------------------------------------------------------------
>
> Key: IGNITE-21131
> URL: https://issues.apache.org/jira/browse/IGNITE-21131
> Project: Ignite
> Issue Type: Improvement
> Reporter: Aleksey Plekhanov
> Assignee: Aleksey Plekhanov
> Priority: Major
> Labels: calcite, ise
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Calcite can compose OR operator with literals to SEARCH/SARG, and SEARCH/SARG
> can be used for index scans. But we can't do this for OR operator with
> dynamic parameters.
> For example expression {{a IN (1, 2, 3)}} can be converted to {{a = 1 OR a =
> 2 OR a = 3}} and after that can be converted to {{SEARCH(a, SARG(1, 2, 3))}},
> but expression {{a IN (?, ?, ?)}} can be converted only to {{a = ? OR a = ?
> OR a = ?}} and can't be used for index scan.
> To fix this issue we can create ranges from dynamic parameters during
> planning, sort and remove intersections from these ranges in runtime.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)