[AURON #2217] Support Iceberg _spec_id metadata in native scan#2218
Open
weimingdiit wants to merge 1 commit intoapache:masterfrom
Open
[AURON #2217] Support Iceberg _spec_id metadata in native scan#2218weimingdiit wants to merge 1 commit intoapache:masterfrom
weimingdiit wants to merge 1 commit intoapache:masterfrom
Conversation
Signed-off-by: weimingdiit <weimingdiit@gmail.com>
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.
Which issue does this PR close?
Closes #2217
Rationale for this change
Native Iceberg scan currently supports projecting the
_filemetadata column, but falls back when_spec_idis requested._spec_idis a file-level Iceberg metadata column and can be materialized as a per-file constant value in the native scan, similar to_file.What changes are included in this PR?
This PR adds native scan support for the Iceberg
_spec_idmetadata column._spec_idin Iceberg native scan metadata column validation._spec_idfromFileScanTask.file().specId()as a per-file partition value._spec_idprojection and mixed data/metadata projection with_fileand_spec_id.Are there any user-facing changes?
Yes. Queries that project Iceberg
_spec_idcan now use the native Iceberg scan path instead of falling back to Spark.How was this patch tested?
CI.