You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (Jira)" <ji...@apache.org> on 2021/07/05 13:24:00 UTC

[jira] [Issue Comment Deleted] (FLINK-7403) Remove expandLocalRef() before code generation

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

Timo Walther updated FLINK-7403:
--------------------------------
    Comment: was deleted

(was: This issue was labeled "stale-major" 7 days ago and has not received any updates so it is being deprioritized. If this ticket is actually Major, please raise the priority and ask a committer to assign you the issue or revive the public discussion.
)

> Remove expandLocalRef() before code generation
> ----------------------------------------------
>
>                 Key: FLINK-7403
>                 URL: https://issues.apache.org/jira/browse/FLINK-7403
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / Planner
>            Reporter: Timo Walther
>            Priority: Major
>              Labels: auto-deprioritized-major, auto-unassigned
>
> Currently, we expand local references before code generation. This means that expressions that actually only need to be evaluated once, might be evaluated multiple times. We should remove the expand step where possible.
> Take the following query as an example:
> {code:java}
> t.select(func0('c), func0('c), func0('c))
> {code}
> func0('c) is called three times for every input row even func0 is deterministic. It would be nice if we can reuse it. 



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