Piotr Nowojski created FLINK-41764:
--------------------------------------
Summary: Split and extract the join logic of StreamingJoinOperator
Key: FLINK-41764
URL: https://issues.apache.org/jira/browse/FLINK-41764
Project: Flink
Issue Type: Improvement
Components: Table SQL / Runtime
Reporter: Piotr Nowojski
Assignee: Piotr Nowojski
{\{StreamingJoinOperator#processElement}} implements the whole regular
streaming join in one method with deeply nested branches. Its Javadoc carries
pseudo code that has to be kept in sync with the code by hand. The lookups of
an input's own stored records, their guards and the changelog flags they depend
on are spread over \{{AbstractStreamingJoinOperator}}.
This ticket restructures the code. The results of the join, its state and its
savepoints don't change.
* Group the lookups of an input's stored records in one class,
\{{JoinInputLookups}}, together with their guards. These are the record an
upsert replaces, and the full record of a DELETE that contains only the unique
key.
* Let the guard of the replaced-record lookup require a unique key, because an
input without one never replaces a record. The state views of such inputs
already return no record, so results don't change.
* Split \{{processElement}} into small methods, one per step, and replace the
pseudo code with their Javadoc.
* Move the join algorithm into \{{StreamingJoinLogic}}, separate from the
operator's lifecycle and state creation.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)