-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parquet: Internal writer and reader #11904
base: main
Are you sure you want to change the base?
Conversation
} | ||
|
||
private static class ParquetStructReader extends StructReader<StructLike, StructLike> { | ||
private final GenericRecord template; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I introduce a new class like GenericStruct
that implements StructLike
, I thought of using StructProjection
but it is read only. Hence, need one simple class to create a StructLike
objects.
required(113, "dec_38_10", Types.DecimalType.of(38, 10))); | ||
|
||
// Consuming the data as per Type.java | ||
GenericRecord record = GenericRecord.create(schema); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I introduce a new class like GenericStruct
that implements StructLike
, I thought of using StructProjection
but it is read only. Hence, need one simple class to create a StructLike
objects.
Line 95, wrapping this with StructProjection
just to get pure StructLike
Splitted into 3 commits,
a) Refactor BaseParquetWriter to only keep common functionality required for internal and generic writer.
b) Refactor BaseParquetReaders to only keep common functionality required for internal and generic reader.
c) Add internal writer and reader that consumes and produces the Iceberg in-memory data model.