Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-10956

Reuse same rexCall during codegen

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Currently, same rexCalls have not been reused during codegen. I think we can add some reuse logic to achieve a better performance. Take the following query as an example:

      t.select(func0('c), func0('c), func0('c))
      

      func0('c) is called three times for every input row even func0 is deterministic. It would be nice if we can reuse it.
      Any suggestions are appreciated.

        Attachments

          Activity

            People

            • Assignee:
              hequn8128 Hequn Cheng
              Reporter:
              hequn8128 Hequn Cheng
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: