[
https://issues.apache.org/jira/browse/CALCITE-5083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated CALCITE-5083:
------------------------------------
Labels: pull-request-available (was: )
> In RelBuilder.project_, do not unwrap SARGs
> -------------------------------------------
>
> Key: CALCITE-5083
> URL: https://issues.apache.org/jira/browse/CALCITE-5083
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.30.0
> Reporter: Vladimir Ozerov
> Assignee: Vladimir Ozerov
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The {{RelBuilder.project_}} method forcefully unwraps SARG expressions. This
> way, we may lose SARG-related optimization opportunities and even get an
> infinite loop when some rules are applied heuristically. For example, the
> {{ProjectReduceExpressionsRule}} may simplify an expression to a SARG which
> would be unwrapped back to the original form in the RelBuilder, leading to an
> infinite execution of the rule.
> The aim of this ticket is to remove the unconditional SARG unwrap from the
> {{RelBuilder}}.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)