You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "godfrey he (Jira)" <ji...@apache.org> on 2020/11/07 16:05:00 UTC
[jira] [Closed] (FLINK-19811) FlinkRexUtil#simplify should simplify
search in conjunctions
[ https://issues.apache.org/jira/browse/FLINK-19811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
godfrey he closed FLINK-19811.
------------------------------
Resolution: Fixed
master: 23349b60294600b072f43ad8bd0228516cbfad70
> FlinkRexUtil#simplify should simplify search in conjunctions
> ------------------------------------------------------------
>
> Key: FLINK-19811
> URL: https://issues.apache.org/jira/browse/FLINK-19811
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / Planner
> Reporter: Caizhi Weng
> Assignee: godfrey he
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.12.0
>
>
> The new version of Calcite introduces the {{SEARCH}} rex call to express range conditions. However {{SEARCH}}s in conjunctions are currently not simplified. For example, {{AND(=($2, 2020), SEARCH($2, Sarg[2020, 2021]))}} is not simplified while it should be simplified to {{=($2, 2020)}}.
> This issue is caused by [CALCITE-4364|https://issues.apache.org/jira/browse/CALCITE-4364]. We could currently extend the {{RexSimplify}} class to temporarily cover this issue.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)