Repository navigation
Conversation
earlybard
marked this pull request as ready for review
October 27, 2026 23:19
This was referenced Oct 27, 2026
Contributor
Author
|
The Lint failure here is from ruff 0.17's new rules hitting main, not this change. #95 fixes it, and this passes lint with the repo's locked ruff (0.15.20). |
The backend array held rustac's DuckdbClient, which can't be pickled, so computing a chunked array on a dask.distributed cluster failed with "Could not serialize object of type _HLGExprSequence". When open() makes the client, the array now drops it when pickled and makes a fresh one when unpickled. A client the caller passes is pickled as is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hrodmn
force-pushed
the
fix/pickle-for-distributed
branch
from
November 18, 2026 02:43
d4cf3e4 to
366ea00
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Computing a chunked array on a
dask.distributedcluster fails:The backend array holds rustac's
DuckdbClient, which can't be pickled. Whenopen()makes the client, the array now drops it when pickled and makes a freshDuckdbClient()when unpickled.A client passed as
duckdb_client=is pickled as it is. It may carry settings a default client wouldn't have, such as hive partitioning or credentials set withexecute(), so it has to be picklable itself. The docstring and the chunking guide say so, and thathrefmust be readable from every worker.Tests round-trip an opened array through pickle and compare its values, and check that a caller's client isn't swapped out. I also ran it by hand on a
LocalCluster(processes=True).This will conflict with #88 in
_backend.py(the docstring, and_dst_to_4326). Happy to rebase whichever lands second.🤖 Generated with Claude Code