fix(flink): Support read non-VECTOR columns from table containing VEC…#18712
Merged
Conversation
e5db426 to
8c684aa
Compare
8c684aa to
ec8fff1
Compare
danny0405
previously approved these changes
May 9, 2026
danny0405
reviewed
May 9, 2026
ec8fff1 to
440de18
Compare
Collaborator
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #18712 +/- ##
=========================================
Coverage 68.09% 68.09%
- Complexity 29106 29123 +17
=========================================
Files 2528 2528
Lines 141467 141477 +10
Branches 17544 17541 -3
=========================================
+ Hits 96330 96339 +9
+ Misses 37217 37216 -1
- Partials 7920 7922 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
danny0405
approved these changes
May 11, 2026
danny0405
approved these changes
May 11, 2026
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.
…TOR columns
Describe the issue this Pull Request addresses
Flink table reads could fail for Hudi tables created by Spark when the table schema contains VECTOR columns, even when the query only projects non-VECTOR fields. The failure came from Flink-side schema conversion and reader validation not distinguishing between the full table schema and the required/projected read schema.
This PR improves Flink compatibility with Spark-written VECTOR tables by converting VECTOR schema metadata into Flink array element types while still rejecting actual VECTOR column reads until Flink reader support is implemented.
Summary and Changelog
HoodieSchemaConverter, mapping VECTOR element types to Flink arrays:FLOAT->ARRAY<FLOAT>DOUBLE->ARRAY<DOUBLE>INT8->ARRAY<TINYINT>DataTypeUtils.validateReaderSupportedDataTypes, rejecting reads only when projected fields include VECTOR columns.HoodieTableSourceto validate the produced/read data type before building the source pipeline, and caches resolved table schema.Impact
Risk Level
low
Documentation Update
Contributor's checklist