feat(flink): enable LSM end-to-end for Flink by default#19307
Open
cshuo wants to merge 2 commits into
Open
Conversation
cshuo
marked this pull request as draft
July 16, 2026 11:45
Collaborator
cshuo
force-pushed
the
support_lsm_for_flink
branch
2 times, most recently
from
July 16, 2026 13:19
57f4191 to
89be88b
Compare
cshuo
marked this pull request as ready for review
July 17, 2026 03:58
cshuo
force-pushed
the
support_lsm_for_flink
branch
3 times, most recently
from
July 17, 2026 07:01
c8be57b to
c248097
Compare
cshuo
force-pushed
the
support_lsm_for_flink
branch
from
July 20, 2026 01:42
c248097 to
625214f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe the issue this Pull Request addresses
Flink did not enable the LSM tree storage layout end to end by default, leaving write-handle selection, table initialization, and read paths dependent on legacy behavior. This change makes LSM the default for applicable Flink operations while retaining the default layout for inserts and explicit legacy-layout compatibility cases.
This PR applies LSM only to data tables. Enabling LSM for the metadata table (MDT) is deferred to a follow-up PR.
Summary and Changelog
insert, and persist the storage layout and log file format during table initialization.FormatUtils.createRecordReader, selecting the LSM reader for supported native log-file cases.Impact
HoodieRecordReaderand shares schema-evolution transformation logic between inline and native log blocks.HoodieTableMetaClient.TableBuilder, enabling consistent LSM table creation.Risk Level
medium. The default storage layout changes across Flink write and read paths, with compatibility-sensitive tests explicitly retaining the default layout for older table versions. The commit adds focused unit and integration test coverage for the new selection and initialization behavior.
Documentation Update
none.
Contributor's checklist