-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUG] Fix for Iceberg schema projection (#1815)
Correctly "projects" the schema retrieved from Iceberg onto Parquet files after reads This PR also introduces `ScanTask::materialized_schema()`, which returns the schema of a ScanTask after pushdowns (column pruning) is applied. 1. When an unloaded MicroPartition is created from a ScanTask, it inherits the ScanTask's `materialized_schema` 2. When an unloaded MicroPartition is materialized, it casts all resulting tables to its `self.schema`, which might have been modified by operations such as `.select` or `.cast`. --------- Co-authored-by: Fokko Driesprong <[email protected]> Co-authored-by: Jay Chia <[email protected]@users.noreply.github.com>
- Loading branch information
1 parent
854037e
commit 5814922
Showing
5 changed files
with
57 additions
and
70 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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