[HUDI-7073] Fix schema projection in file group reader-based parquet file format#10047
Merged
yihua merged 1 commit intoapache:masterfrom Nov 10, 2023
Merged
Conversation
edfa00f to
a2e58e5
Compare
7e88851 to
5a2e080
Compare
…file format 1. Previously we only search the data schema for a field, but it can also be contained in the partition schema. We add the logic to search fields in table schema. 2. Update the manually created schema to match the one created through spark sql.
5a2e080 to
c3f6c29
Compare
yihua
approved these changes
Nov 10, 2023
Contributor
|
Tests pass based on #10044 which cherry-picks the change in this PR. |
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.
Change Logs
As above. When turning on the file group reader-based parquet file format for MOR snapshot queries, the following exception is thrown in a few tests although ts exists in the schema
it can also be contained in the partition schema. We add this logic.
Impact
Bug fix.
Risk level
low
Documentation Update
N/A
Contributor's checklist