Skip to content

[FLINK-31462] Supports full calculation from the specified snapshot in streaming mode - #624

Merged
JingsongLi merged 4 commits into
apache:masterfrom
liming30:FLINK-31462
Mar 29, 2023
Merged

[FLINK-31462] Supports full calculation from the specified snapshot in streaming mode#624
JingsongLi merged 4 commits into
apache:masterfrom
liming30:FLINK-31462

Conversation

@liming30

Copy link
Copy Markdown
Contributor

Purpose

When consuming multiple tables, it may be necessary to align data versions in different tables to ensure version consistency. However, the current stream mode only supports incremental processing from the specified snapshot, and does not support full calculation of the specified snapshot first, and then incremental calculation.

Brief change

A new startup mode FROM_SNAPSHOT_FULL is added to support full calculation of the specified snapshot of data in streaming mode, and then incrementally process the newly added data to ensure the consistency of the data version when processing multiple tables.

@JingsongLi JingsongLi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @liming30 for the contribution, can you add a test for this?

@liming30

Copy link
Copy Markdown
Contributor Author

@JingsongLi Sorry for replying now, I added a StartupModeTest to verify that the plan generated by each StartupMode is correct.

@JingsongLi

Copy link
Copy Markdown
Contributor

Hi @liming30 , test failed, you can find action in your repo: https://github.com/liming30/flink-table-store/actions

@liming30

Copy link
Copy Markdown
Contributor Author

@JingsongLi hi, I have fixed the test, can you please help to take a look?

@JingsongLi JingsongLi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@JingsongLi
JingsongLi merged commit e8bb7d0 into apache:master Mar 29, 2023
@liming30
liming30 deleted the FLINK-31462 branch March 29, 2023 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants