Skip to content

Fix ORC writer accepting empty struct that reader cannot bind - #17917

Open
zhang-arvin wants to merge 1 commit into
apache:mainfrom
zhang-arvin:fix/orc-empty-struct-reader-17913
Open

Fix ORC writer accepting empty struct that reader cannot bind#17917
zhang-arvin wants to merge 1 commit into
apache:mainfrom
zhang-arvin:fix/orc-empty-struct-reader-17913

Conversation

@zhang-arvin

Copy link
Copy Markdown

Fixes #17913: Iceberg generic ORC writer accepts a schema containing struct<> (empty struct) and writes a file, but the generic ORC reader cannot read that file with the same Iceberg schema.

Fix

Added a validation in ORCSchemaUtil.convert() to reject empty struct types at write time, since ORC does not support struct types with zero fields.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ORC: Writer accepts an empty struct that reader cannot bind

1 participant