You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Vladimir Ozerov (Jira)" <ji...@apache.org> on 2022/04/04 19:37:00 UTC
[jira] [Created] (CALCITE-5083) In RelBuilder.project_, do not unwrap SARGs
Vladimir Ozerov created CALCITE-5083:
----------------------------------------
Summary: 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
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)