Skip to content

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

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

Fix #8978 - do not attempt to clone literals.#8979
jsignell merged 6 commits intodask: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.

Co-authored-by: Julia Signell <jsignell@gmail.com>
@github-actions github-actions bot removed the array label May 4, 2022
@crusaderky
Copy link
Copy Markdown
Collaborator

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

@JSKenyon
Copy link
Copy Markdown
Contributor Author

JSKenyon commented May 9, 2022

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

@JSKenyon
Copy link
Copy Markdown
Contributor Author

JSKenyon commented May 9, 2022

@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
Copy link
Copy Markdown
Contributor Author

JSKenyon commented May 9, 2022

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

@jsignell
Copy link
Copy Markdown
Member

jsignell commented May 9, 2022

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