Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
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:
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.
Attachments
Issue Links
- is related to
-
FLINK-10834 TableAPI flatten() calculated value error
- Open