The GitHub Actions job "Nightly (beta)" on flink.git/master has failed.
Run started by GitHub user github-actions[bot] (triggered by 
github-actions[bot]).

Head commit for run:
8e9e69cb0ed430fbce873ea0e6ab6afdbad85421 / RaoraoXiong <[email protected]>
[FLINK-39986][table-planner] Support Python UDF deduplication in projection and 
condition (#28638)

The duplication originates in the planner: RexProgram already shares
structurally identical expressions through RexLocalRef, but the Python calc
translation calls RexProgram#expandLocalRef, which expands the shared
reference back into independent expression trees.

This is now addressed by two logical optimizer rules, so that neither
CommonExecPythonCalc nor the projection codegen needs to be aware of it:

- RemoteCalcConditionProjectionCseRule rewrites a Calc projection to
  reference UDF calls already computed by the Calc below it, which removes
  duplicates shared between a WHERE condition and a SELECT projection.
- RemoteCalcProjectionCseRule splits a Calc containing duplicated
  deterministic calls into a bottom Calc computing each distinct call once
  plus a top Calc projecting the shared results back into their original
  positions.

Both rules share their reusability predicate through RemoteCalcCseUtil so
they agree on which calls may safely share a single evaluation.
Non-deterministic calls are always evaluated independently.

Generated-by: Claude-4.6-Opus

Report URL: https://github.com/apache/flink/actions/runs/33142161834

With regards,
GitHub Actions via GitBox

Reply via email to