-
Notifications
You must be signed in to change notification settings - Fork 168
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
NamedRowTuple
does not support pickling
#490
Comments
ragnard
added a commit
to ragnard/trino-python-client
that referenced
this issue
Oct 15, 2024
Previously `NamedRowTuple` did not roundtrip successfully. Added tests for all custom types.
ragnard
added a commit
to ragnard/trino-python-client
that referenced
this issue
Oct 15, 2024
Previously `NamedRowTuple` did not roundtrip successfully. Added tests for all custom types.
ragnard
added a commit
to ragnard/trino-python-client
that referenced
this issue
Oct 15, 2024
Previously `NamedRowTuple` did not roundtrip successfully. Added tests for all custom types.
ragnard
added a commit
to ragnard/trino-python-client
that referenced
this issue
Oct 15, 2024
Previously `NamedRowTuple` did not roundtrip successfully. Added tests for all custom types.
ragnard
added a commit
to ragnard/trino-python-client
that referenced
this issue
Oct 15, 2024
Previously `NamedRowTuple` did not roundtrip successfully. Added tests for all custom types. Fixes trinodb#490.
ragnard
added a commit
to ragnard/trino-python-client
that referenced
this issue
Oct 15, 2024
Previously `NamedRowTuple` did not roundtrip successfully. Added tests for all custom types. Fixes trinodb#490.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
The custom type
NamedRowTuple
does not implement the methods necessary for a successfulpickle
roundtrip. When unpickling (pickle.load[s]
) it raises aTypeError
.It should work with
pickle
.Some frameworks, for example https://github.com/streamlit/streamlit rely on pickling results/rows for caching which currently fails when using this library.
Actual behavior
Exception when calling
pickle.load[s]
:Steps To Reproduce
Log output
No response
Operating System
Linux
Trino Python client version
caff0e8
Trino Server version
461
Python version
Python 3.12.5
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: