Skip to content

Parquet: Make createStructReader with fieldId abstract - #17698

Merged
huaxingao merged 1 commit into
apache:mainfrom
dramaticlly:1.12deprecation-parquet-struct-reader
Aug 23, 2026
Merged

Parquet: Make createStructReader with fieldId abstract#17698
huaxingao merged 1 commit into
apache:mainfrom
dramaticlly:1.12deprecation-parquet-struct-reader

Conversation

@dramaticlly

Copy link
Copy Markdown
Contributor

createStructReader(List, StructType) was deprecated for removal in 1.12.0 in favor of createStructReader(List, StructType, Integer). The 2-arg form threw UnsupportedOperationException and the 3-arg form defaulted to delegating to it, so neither was usable without an override.

Remove the 2-arg method and make the 3-arg form abstract. Both subclasses (GenericParquetReaders, InternalReader) already override it, and BaseParquetReaders is package-private so no other subclass can exist.

AI Disclosure

Model: Claude Opus 5 (1M context)
Platform/Tool: Claude Code
Human Oversight: reviewed
Prompt Summary: split #16449 into smaller self-contained PRs; verify each group compiles and tests green standalone

@dramaticlly

Copy link
Copy Markdown
Contributor Author

@RussellSpitzer can you help take a look? I also make 3 argument of createStructReader abstract after remove 2 argument method and all subclass override the new one.

@uros-b

uros-b commented Aug 18, 2026

Copy link
Copy Markdown
Member

Thank you @dramaticlly!

createStructReader(List, StructType) was deprecated for removal in 1.12.0
in favor of createStructReader(List, StructType, Integer). The 2-arg form
threw UnsupportedOperationException and the 3-arg form defaulted to
delegating to it, so neither was usable without an override.

Remove the 2-arg method and make the 3-arg form abstract. Both subclasses
(GenericParquetReaders, InternalReader) already override it, and
BaseParquetReaders is package-private so no other subclass can exist.
@dramaticlly
dramaticlly force-pushed the 1.12deprecation-parquet-struct-reader branch from 79f94fd to e0efb98 Compare August 18, 2026 21:11
@dramaticlly

Copy link
Copy Markdown
Contributor Author

@huaxingao can you help check this as well?

@huaxingao huaxingao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@huaxingao
huaxingao merged commit f0e7de3 into apache:main Aug 23, 2026
38 checks passed
@huaxingao

Copy link
Copy Markdown
Contributor

Thanks @dramaticlly for the PR! Thanks @uros-b for the review!

@dramaticlly
dramaticlly deleted the 1.12deprecation-parquet-struct-reader branch August 24, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants