Skip to content

Conversation

@rdblue
Copy link
Contributor

@rdblue rdblue commented Jul 11, 2022

This is an alternative implementation of #5242 and #5244. Rather than adding factory classes, this adds a copyFor method to StructLikeWrapper and InternalRecordWrapper. This is smaller than adding a factory and keeps the logic in one place (rather than duplicating it in a factory).

This updates cases where the wrappers are used to copy wrappers rather than create new ones. This avoids analyzing the type that the wrappers are created for and should speed up execution.

@rdblue rdblue merged commit fa07d9f into apache:master Jul 11, 2022
@rdblue
Copy link
Contributor Author

rdblue commented Jul 11, 2022

Thanks, @aokolnychyi!

Initial-neko pushed a commit to Initial-neko/iceberg that referenced this pull request Jul 18, 2022
Core: Add StructLikeWrapper#copyFor to avoid type analysis.
Core: Add InternalRecordWrapper#copyFor to avoid type analysis.

Co-Authored-By: shidayang <[email protected]>
Closes apache#5242.
Closes apache#5244.
Initial-neko pushed a commit to Initial-neko/iceberg that referenced this pull request Jul 18, 2022
Core: Add StructLikeWrapper#copyFor to avoid type analysis.
Core: Add InternalRecordWrapper#copyFor to avoid type analysis.

Co-Authored-By: shidayang <[email protected]>
Closes apache#5242.
Closes apache#5244.
Initial-neko pushed a commit to Initial-neko/iceberg that referenced this pull request Jul 20, 2022
Core: Add StructLikeWrapper#copyFor to avoid type analysis.
Core: Add InternalRecordWrapper#copyFor to avoid type analysis.

Co-Authored-By: shidayang <[email protected]>
Closes apache#5242.
Closes apache#5244.
zhongyujiang pushed a commit to zhongyujiang/iceberg that referenced this pull request Apr 16, 2025
Core: Add StructLikeWrapper#copyFor to avoid type analysis.
Core: Add InternalRecordWrapper#copyFor to avoid type analysis.

Co-Authored-By: shidayang <[email protected]>
Closes apache#5242.
Closes apache#5244.

(cherry picked from commit fa07d9f)
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.

2 participants