You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Yingyu (Jira)" <ji...@apache.org> on 2021/08/19 19:57:00 UTC

[jira] [Issue Comment Deleted] (CALCITE-2736) ReduceExpressionsRule never reduces dynamic expressions but this should be configurable

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

Yingyu updated CALCITE-2736:
----------------------------
    Comment: was deleted

(was: Since the previous PR (#980) didn't get a chance to merge into master I created this new PR by refactoring the changes using current config API.
https://github.com/apache/calcite/pull/2502
1. Add new config option treatDynamicCallsAsNonConstant.
2. Update ReducibleExprLocator.analyzeCall() method to also rely on treatDynamicCallsAsNonConstant option when determining whether to reduce a dynamic function.

[~julianhyde], [~vlsi], [~kgyrtkirk] could you help to review this PR since you reviewed the old PR  in the past?)

> ReduceExpressionsRule never reduces dynamic expressions but this should be configurable
> ---------------------------------------------------------------------------------------
>
>                 Key: CALCITE-2736
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2736
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Jacques Nadeau
>            Assignee: Jacques Nadeau
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> There are situations where it is helpful to reduce dynamic SqlCalls. Right now, the ReduceExpressionsRule always avoids doing this. We should enhance the rule so this can be configurable depending on where in planning the rule is used.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)