Skip to content

[SPARK-52029][SQL] Support external field-id to column-name mapping for Parquet #50819

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

szehon-ho
Copy link
Contributor

@szehon-ho szehon-ho commented May 7, 2025

Co-authored with @harperjiang

What changes were proposed in this pull request?

Add spark.sql.parquet.fieldId.read.externalMapping to allow specifying external field id to name mapping for Parquet file format.

Why are the changes needed?

Similar to Iceberg's schema.name-mapping.default (https://iceberg.apache.org/spec/#column-projection)

Add support for Spark parquet file format to also be able to specify an external mapping, so we can read externally-created files added to the table, with field-ids not in the existing table schema.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Added new test in ParquetIdExternalMappingSuite

Was this patch authored or co-authored using generative AI tooling?

No

…port

Co-authored-by: Hao Jiang <harperjiang@msn.com>
@github-actions github-actions bot added the SQL label May 7, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant