[
https://issues.apache.org/jira/browse/CALCITE-4978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17471984#comment-17471984
]
Stamatis Zampetakis commented on CALCITE-4978:
----------------------------------------------
My bad I was looking into an older version of Calcite where `constantMap` etc
didn't exist.
If you already have some logic that improves the constant derivation done by
{{RexUtil.predicateConstants}} wouldn't be better to improve directly that part
assuming that the derivation is useful for everybody.
> Allow custom constant map in RelOptPredicateList
> ------------------------------------------------
>
> Key: CALCITE-4978
> URL: https://issues.apache.org/jira/browse/CALCITE-4978
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.29.0
> Reporter: Vladimir Ozerov
> Assignee: Vladimir Ozerov
> Priority: Minor
>
> {{RelOptPredicateList}} tries to infer constants from the predicates passed
> to the {{of(...)}} factory methods. However, the underlying mechanic is
> limited and handles only a small subset of possible constant derivation
> strategies. We may want to implement such strategies gradually (inference
> from AND/OR, ranges, etc.), but it might be a big effort.
> This ticket proposes a new factory method that allows users to pass custom
> constant maps.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)