Skip to content
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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ajantha-bhat
Copy link
Member

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.

@ajantha-bhat ajantha-bhat marked this pull request as draft January 3, 2025 16:27
@ajantha-bhat ajantha-bhat requested a review from rdblue January 3, 2025 16:30
}

private static class ParquetStructReader extends StructReader<StructLike, StructLike> {
private final GenericRecord template;
Copy link
Member Author

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);
Copy link
Member Author

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

@ajantha-bhat ajantha-bhat reopened this Jan 4, 2025
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.

1 participant