Skip to content

Conversation

ragnard
Copy link
Member

@ragnard ragnard commented Oct 15, 2024

Ensure NamedRowTuple pickle roundtrips successfully.

Added tests for all custom types.

Fixes #490.

Description

Implement necessary pickle methods to ensure type can be pickled/unpickled correctly.

Non-technical explanation

Support pickle serialization/deserialization for rows.

Release notes

( ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
(x) Release notes are required, with the following suggested text:

* Ensure custom types support pickling. ({issue}`490`)

@cla-bot cla-bot bot added the cla-signed label Oct 15, 2024
@ragnard ragnard force-pushed the support-pickle branch 4 times, most recently from f7d6099 to b7b0fa4 Compare October 15, 2024 17:39
@ragnard ragnard changed the title Fixes #490: Ensure custom types support pickling. Ensure custom types support pickling. Oct 15, 2024
Previously `NamedRowTuple` did not roundtrip successfully.
Added tests for all custom types.

Fixes trinodb#490.
@hashhar
Copy link
Member

hashhar commented Nov 20, 2024

@damian3031 can you also take a look?

Copy link
Member

@damian3031 damian3031 left a comment

Choose a reason for hiding this comment

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

LGTM

@hashhar hashhar merged commit b41a388 into trinodb:master Nov 21, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

NamedRowTuple does not support pickling

3 participants