rambleraptor opened a new pull request, #4357:
URL: https://github.com/apache/iceberg-python/pull/4357
<!--
Thanks for opening a pull request!
-->
<!-- In the case this PR will resolve an issue, please replace
${GITHUB_ISSUE_ID} below with the actual Github issue id. -->
<!-- Closes #${GITHUB_ISSUE_ID} -->
# Rationale for this change
I've commented on a number of PRs about how some of their changes will cause
an object to no longer be pickle-able
(https://docs.python.org/3/library/pickle.html) This can potentially be a
breaking change for users, so we should avoid it when possible!
I don't love that we have to keep creating `__getstate__` and` __setstate__`
methods throughout the codebase. I've created a mixin that allows developers to
define which variables cannot be pickled and then the mixin centralized the
`__getstate__` and `__setstate__` changes for us.
## Are these changes tested?
I've added some tests and we're expecting the rest of the suite to work
properly.
## Are there any user-facing changes?
<!-- In the case of user-facing changes, please add the changelog label. -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]