Skip to content

fix(parquet): accept large_string and large_binary from stored Arrow schema - #1204

Open
fairytale0828 wants to merge 1 commit into
apache:mainfrom
fairytale0828:fix/parquet-large-string-binary
Open

fairytale0828 wants to merge 1 commit into
apache:mainfrom
fairytale0828:fix/parquet-large-string-binary

Conversation

@fairytale0828

Copy link
Copy Markdown
Contributor

Parquet files from other engines may carry an ARROW:schema hint that restores
UTF8 columns as large_string and binary columns as large_binary, which
ValidateParquetTypeCompatibility rejected even though the physical type is
still BYTE_ARRAY plus UTF8.

Accept LARGE_STRING for kString and LARGE_BINARY for kBinary, matching the
LARGE_LIST already accepted for kList. The output schema still comes from the
Iceberg projection, so the wide arrays are cast during projection and readers
keep emitting the configured 32-bit layout regardless of how the file was
written.

Add a reader test covering top-level string, top-level binary and a list
element stored with wide offsets.

@fairytale0828 fairytale0828 changed the title fix(parquet): accept large_string and large_binary from stored Arrow … fix(parquet): accept large_string and large_binary from stored Arrow schema Dec 2, 2026
@fairytale0828

Copy link
Copy Markdown
Contributor Author

cc @wgtmac could you please take a look at this PR when you have a moment? It keeps the stable 32-bit output schema from #1062 by accepting LARGE_STRING/LARGE_BINARY from stored ARROW:schema metadata and casting them during projection.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants