Skip to content

Fix #8978 - do not attempt to clone literals. - #8979

Merged
jsignell merged 6 commits into
dask:mainfrom
JSKenyon:main
May 9, 2022
Merged

jsignell merged 6 commits into
dask:mainfrom
JSKenyon:main

Conversation

@JSKenyon

Copy link
Copy Markdown
Contributor

This should be a simple fix for #8978. Unless I am mistaken, idxv should always be None for literals, and literals should simply be included as-is in the cloned graph.

Comment thread dask/blockwise.py Resolved
Co-authored-by: Julia Signell <[email protected]>
@github-actions github-actions Bot removed the array label May 4, 2022
Comment thread dask/blockwise.py Resolved
@crusaderky

Copy link
Copy Markdown
Collaborator

Apologies for the late response.
Could you write a unit test?

@JSKenyon

JSKenyon commented May 9, 2022

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback - I will write a unit test when I have a moment.

@JSKenyon

JSKenyon commented May 9, 2022

Copy link
Copy Markdown
Contributor Author

@crusaderky, @jsignell I have added a very rudimentary test - let me know if you want it to be more sophisticated. At present it mainly serves to check that da.blockwise doesn't fail for "normal" literals.

@JSKenyon

JSKenyon commented May 9, 2022

Copy link
Copy Markdown
Contributor Author

Not sure what is up with the broken test - nothing to do with this PR though.

@jsignell

jsignell commented May 9, 2022

Copy link
Copy Markdown
Member

Yeah that failed test looks unrelated. Thank you for this work @JSKenyon!

@jsignell
jsignell merged commit 273ed75 into dask:main May 9, 2022
erayaslan pushed a commit to erayaslan/dask that referenced this pull request May 12, 2022
crusaderky added a commit to crusaderky/dask that referenced this pull request Apr 22, 2023
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.

Blockwise.clone doesn't handle (iterable) literal arguments correctly

4 participants