Skip to content

Conversation

@nullccxsy
Copy link
Contributor

…Type

  • Added move and copy constructors and assignment operators for Schema and StructType to manage resource ownership and improve performance.
  • Refactored field lookup methods to utilize lazy initialization with thread safety, ensuring safe concurrent access.
  • Introduced unit tests for thread safety in Schema and StructType, validating concurrent operations and access patterns.

…Type

- Added move and copy constructors and assignment operators for Schema and StructType to manage resource ownership and improve performance.
- Refactored field lookup methods to utilize lazy initialization with thread safety, ensuring safe concurrent access.
- Introduced unit tests for thread safety in Schema and StructType, validating concurrent operations and access patterns.
Copy link
Member

@wgtmac wgtmac left a comment

Choose a reason for hiding this comment

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

The PR title is broken...

…/move operations

- Removed copy and move constructors and assignment operators from Schema and StructType to streamline resource management.
@nullccxsy nullccxsy changed the title feat: implement thread-safe lazy initialization for Schema and Struct… feat: implement lazy initialization for Schema and StructType Sep 15, 2025
Copy link
Member

@wgtmac wgtmac left a comment

Choose a reason for hiding this comment

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

Thanks @nullccxsy!

@Fokko Fokko changed the title feat: implement lazy initialization for Schema and StructType feat: lazy init for Schema and StructType Sep 22, 2025
Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @nullccxsy for working on this. In practice, we don't look up by (lowercase) name, and most of the lookups are by Field-ID. So it is good to have these initialize in a lazy fashion 👍

@Fokko Fokko merged commit cb4998c into apache:main Sep 22, 2025
7 checks passed
@Fokko
Copy link
Contributor

Fokko commented Sep 22, 2025

Thanks @wgtmac for the review 🚀

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants