Repository navigation
Array expressions - #12207
Array expressions#12207mrocklin wants to merge 243 commits into
Conversation
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 0 tests ±0 0 ✅ ±0 0s ⏱️ ±0s Results for commit 033e575. ± Comparison against base commit 8d2cc26. ♻️ This comment has been updated with latest results. |
|
OK, I've added some optimizations here, as well as some tools to visualize what's going on. I've also updated xarray to use this in a branch. Notebooks here: For people who don't like clicking on links, here is an example: import dask.array as da
x = da.ones((20000, 20000))
x.exprx.dot(x.T - x.mean(axis=0))[:5, :20].exprx.dot(x.T - x.mean(axis=0))[:5, :20].expr.simplify()But you should look at the notebooks. They have color. |
|
Running through some of the coiled xarray benchmarks. Still plenty to do to make things smooth. It's pretty easy going though. |
|
OK, xarray benchmarks mostly work (and are marginally faster on my machine than legacy). Most notably we're able to fuse pretty aggressively for free. I've also removed cull and other low-level optimizations. I've also done a little work on flox: https://github.com/xarray-contrib/flox/compare/main...mrocklin:flox:dask-array-expr?expand=1 Still some issues I'm sure, but decreasing. The first xarray benchmark I ran had a bunch of things that needed to be fixed. The last couple I ran were fine without effort. The first notebook benchmark is here if people want to run it. This is now at a point where we probably want an actual xarray user to take it for a spin. I'm sure that there are some issues. |
| sliced_input = new_collection(input_array)[input_index] | ||
|
|
||
| # Don't push slice through if it would create empty arrays on non-reduced axes. | ||
| # Reductions on empty non-reduced dimensions cause issues with task aggregation. |
There was a problem hiding this comment.
this sounds like a bug but maybe I'm misunderstanding?
There was a problem hiding this comment.
I'm not sure this is a bug, no. This is saying that we don't want to push slices down through to the underlying array if we're reducing on that dimension.
In general, slicing and reductions can interact. Consider the following:
x = da.random.random(...)
x.mean(axis=1)[:5]This is better done as
x[:5].mean(axis=1)
It gets complicated though with dimensions if they collapse or go away. We really only want to slice through dimensions that aren't being affected by the reduction.
There was a problem hiding this comment.
Don't push slice through if it would create empty arrays on non-reduced axes.
The comment seems to be talking about non-reduced axes though (or am I misunderstanding; and the next line
Reductions on empty non-reduced dimensions cause issues with task aggregation.
sounds like an issue with handling .mean(array_with_shape(0,1,2), axis=0) (not sure what numpy does here either).
|
I think we should not merge into main a PR that is functionally impossible for humans to review. Some random passing observations:
I think this PR constitutes a good prototype starting point from which one can start exfiltrating smaller, self-contained, and - crucially - human-reviewable PRs. |
|
Thanks for the comments. Some responses:
I appreciate the concern about human readability. I think that the issue of human readability might be a couple of possible causes
In the first case I'd agree that one shouldn't merge things in. In the second case I'm not sure. I could also slam this repo with 100 self-contained PRs, but the changes would be more or less the same as what's here. I'm not sure that it would be easier on humans to consume the many smaller PRs over the one big PR. Array expressions are, intrinsically, a large change. There's a certain amount of pain here that we'd have to go through regardless. The specific issues around secondary changes seem valid to me though. Thank you for raising them.
The array/dataframe boundary is particularly interesting / challenging. This happens in operations like
When developing it was smoother to xfail everything that didn't work with array expressions, and then work through the xfails. This results in a test suite that looks more or less exactly like the current test suite (the diff in tests is very small, which I think is good). This way of developing is what motivated the change in the pytest config.
I think that this is a larger discussion. I think that we should start to include more AI-forward documentation and structure in this repository. I think that this will help us automate maintenance in the future. I appreciate that this is a longer conversation though. I'm happy to block merging this on some resolution of that conversation. I'll raise another issue.
I'll take a look.
Just to set expectations, I do not intend to do this level of work. I'm happy to spend a week or two pushing on this. I think that doing this feature by feature and getting review on each one would take several months. |
|
It most certainly would.
Yes, this is a very major feature which is both high cost and high value. Several months are to be expected.
To me, this implies that either
I am not in any way against using AI to write an initial prototype to kickstart human-led, human-understood development. What I am strongly against is using AI to push a finished product and call it a day, with humans involved at most in giving it a very passing glance. This is, frankly, a recipe for disaster. |
Thanks for your opinion here. Respectfully I'll disagree.
I hear your concerns. I certainly wouldn't want to spend months reviewing an AI Slop PR. This isn't that. I've done a fair bit of work to guide development.
I'm certainly not going to do several months of work on this. What I'm hearing from you then is that you're -1 on this PR. That's a fine position to take. That -1 won't necessarily block development though. My own thoughts on merging this are in the original post: Regarding merging, I think it should be easy for us to merge things on this topic. I think it should be difficult for us to switch the default. This section of the code is not on by default, and is mostly unusable today. I think that it's good and warranted to be picky about changes outside of the config feature flag (thank you for spending your time doing this), but that requiring months of work on the stuff within the feature flag area is not warranted and is not the right choice for the project. |
|
I agree with Matt here, and trust his word on this being human-designed and human-guided development. This is indeed an extremely large change. It is also a possibly-very-large improvement that would never be finished or meaningfully explored without a large dose of AI given how little maintainer bandwidth is available at this repo. Perhaps the thing to discuss are the actual plan, design docs, and skills files. Since the Github UI is useless for such large PRs, would it make sense to open a new PR with just those files, and talk through the top-level design prompts? |
|
Earlier @crusaderky wrote the following:
While I appreciate the general concern, I think that this is perhaps a little hyperbolic. There's plenty of space between "blind trust" and "spend months worth of effort". There are many ways that we can build confidence without spending months of effort reading every line. One of those ways of course is the dask test suite, xarray test suite, etc. Those are pretty strict checks. Another ways is by, well, using even more AI. Here is an interaction with Claude, asking it to review everything outside of the I'll still dig in a little and see what can be removed. I wasn't thinking of this PR as being read to merge just yet, I'd rather have people bang on it a little but it seems like people are judging it that way so I might as well make it ready. PromptI'd like to clean up our branch here relative to main by ...
Do a thorough review of the entire diff outside of _array_expr to see the changes we have, and what we might consider reverting to see if it's necessary. Response⏺ Summary of Changes Outside _array_expr
Recommended Actions Can safely revert/move:
Should investigate before reverting: Should keep:
|
| if first_block >= len(cumsum) - 1: | ||
| return None, None # Out of bounds |
There was a problem hiding this comment.
seems like this is an invalid slice and should be an error?
There was a problem hiding this comment.
In the spirit of testing to see how good Claude is at this, I posed this question to it. @dcherian I'd be curious about your thoughts on the response (is it good? did it miss an important point?) I think my motivation in this is less about solving this specific problem (although I acknowledge that it's important to solve) and more about us calibrating how to work with things:
My colleague makes the following question about lines 565:566 in
dask/array/_array_expr/_blockwise.py
seems like this is an invalid slice and should be an error?
Thoughts on this? (he might be wrong)
⏺ Read(dask/array/_array_expr/_blockwise.py)
⎿ Read 20 lines
⏺ The colleague raises a fair point, but I think the current behavior is correct.
When first_block >= len(cumsum) - 1, it means the slice starts beyond all blocks (e.g., x[1000:] on a 100-element array). Returning (None, None) causes the optimization to be skipped, and the slice gets applied to the full output.
This matches NumPy's forgiving slice semantics:
np.arange(100)[1000:1001]
array([], dtype=int64) # Empty, not an error
So rather than raising an error, we let the slice operation produce an empty result naturally. The None, None return is a signal to skip optimization, not an error condition.
That said, one could argue we should handle this case explicitly in the coarse optimization by creating an empty result directly, but skipping the optimization and letting normal slice semantics handle it is simpler and equally correct.
I see how this would produce a correct result, but I wonder if it would produce an optimially
efficient result. Would it be better to inject a slice into the child to make sure that we slice down
to nothing earlier rather than later?
⏺ Good point. Let me trace through what happens:
For out-of-bounds slices (like y[1000:1001] on 100 elements):
- We already handle this optimally - line 594 creates block_ranges.append((0, -1)) and then line 634 injects slice(0, 0) into inputs. Zero blocks computed.
For out-of-bounds integers (like y[1000]):
- We return None, skipping optimization
- The full blockwise executes, then the integer index raises IndexError
The user's concern applies to the integer case - we compute everything just to error. But since it's an error path anyway, I'd argue it's not worth the complexity to optimize. Users shouldn't hit this in normal operation.
That said, if we wanted to handle it, we could change line 584-585 from:
if first is None:
return None # Out of bounds
to inject an empty slice and let it error on a zero-size result instead:
if first is None:
block_ranges.append((0, -1)) # Empty - will error on integer index
output_adjustments.append(0) # Keep as integer to trigger IndexError
But this adds complexity for an edge case that's already an error. I'd leave it as-is unless there's a real-world scenario where this matters.
The dask test suite suffers from a fairly low 88% coverage, and the codecov reports have been broken for the last year, which informs me that nobody has looked at them since either (I'm busy fixing them now). I think I would be much more malleable to push forward with this if
Additionally, to my understanding the work for dask.expr can be split in two:
It should be trivial to have |
Thanks for working on that.
The changes are pretty tied to the work here. I don't know how separable these things are. Looking through the changes outside of
To be clear, this implementation handles the entire dask/array test suite (with a couple of exceptions, mostly around explicit tests for low-level task graph structure). Coverage is pretty much about as high as it can get without extending legacy dask array tests.
The first category is done. Maybe I wasn't clear on this earlier. This PR is a complete re-implementation of dask array with expressions. Or maybe you're asking a different question and I'm not understanding. To be fully explicit, if you run pytest dask/array --array-exprYou run the entire dask array test suite with array expressions and everything passes. |
Yeah, FromArray's are able to absorb slices into them, so there was an intermediate getitem, but simplification pushed it all the way down, and then more simplification removed/absorbed it into the FromArray. (This is also how we get culling now) |
I did not explain clearly. It should be feasible to
The cumulation of (2) and (3) would result in the current PR. The goal is to have something that is human-readable and human-verifiable.
There are many things in that list that can be moved to separate PRs, to be reviewed separately. Namely, I suspect that all the changes to |
I'm glad. For others not tracking the Xarray/Flox stuff there's some conversation happening here (for context I also have branches on xarray and flox that integrate all of this). In the discussion there I show how a relatively high level prompt, along with some guidance and the structure provided in this repo, was able to turn a somewhat non-trivial request for an optimization into fairly reasonable code with mild effort. |
You're right. It probably is feasible to do that. I appreciate that this is how you would have done this work. To be clear, my sense from your comment is that you now also expect me to spend time to do this work. Is that right? The goal being for me to spend time to make it easier for you to review. Correct? I appreciate the value in doing work to make review easier. However I'm not sure that the ROI is strictly positive in this case. I'm not sure that things are quite as separable as you think. If you're interested, you might actually start going through this PR commit by commit (say, the first five commits) each of which are entirely human readable. I think you'll find that the thought process is not very different from how you were thinking.
Zooming out, I'm not sure that I fully agree with this goal. I think that we need to establish sufficient confidence in this code so that merging it has a positive ROI (more good comes of it than bad), and I agree with you that human-readability/verifiability is one way to build confidence. However, I think that there are many ways to establish confidence (tests, AI, benchmarks, etc.) beyond reviewing everything by hand and that we may be at a point where we need to rely on them more. AI development is such that we're now much better at authoring code than we were before. I'd say about 90% of the 234 commits in this repo are the kind of self-contained human-readable units of work that you'd like. Each comes with code, tests, a description, etc.. Each took maybe 15 minutes on average to complete. By our traditional review methods I'd guess that each would take a couple days to get through the kind of thorough back-and-forth review that we used to do. I'm certainly not going to spend the time on this and I suspect that no one else will either. This project doesn't have that bandwidth (although I appreciate your recent energy here). I think that we'll need to change how we work. I'm not saying "and so we should just merge this and not verify anything". I think though that we'll need to get creative and change how we think about reviewing work. I'm very open to engaging on that topic. However I'm not interested in being told to redo this work in a different manner because that's how the reviewer would have done it, especially if that approach seems like it would be a very large investment of time. (my apologies if that response is frustrating). |
The change to dask.bag is an xfail because the test depends on dask array and uses HLGs The changes in dask dataframe, as described above, are pretty tied in to dask array because of interactions with dask arrays in methods like Do you have other questions? One suggestion that I have for you (I hope you forgive the suggestion) would be to actually bring up a tool like claude code and ask it questions of the diff. I suspect that it could provide answer I just gave quite easily, and could easily answer several other questions you would come up with. I think that your intellect and critical eye, combined with AI's ability to pore through a diff, would actually be a really powerful combination. I'd really welcome that kind of scrutiny. I think that it could do a lot of good if you were interested in trying that out. |
- designs/array-expr.md: Architecture principles and patterns - plans/array-expr-migration.md: Prioritized work list and TDD workflow - .claude/skills/: Migration skill with phased guidance 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Implement structured array field access (e.g., x['a'], x[['a', 'b']]) using map_blocks, matching the traditional implementation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Remove module-level skips and add individual xfail markers for tests that don't yet work with array-expr. This makes test coverage visible and progress trackable. - test_array_core.py: 221 pass, 240 xfail - test_array_utils.py: 30 pass, 2 xfail - test_rechunk.py: 79 pass, 3 xfail - test_dispatch.py: kept skip (fundamental API difference) - test_routines.py: kept skip (too many unimplemented) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Integer indices must remove dimensions even when the dimension is size 1. Previously, size-1 dims were always converted to slice(None) which incorrectly preserved the dimension. Also adds regression tests for this fix and the previous rechunk fixes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Route color= options to task graph visualization since expression visualization doesn't support node coloring - Remove xfail on test_mixed_dask_array_multi_dimensional (Rechunk now has npartitions) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Handle empty slices ([:0]) on broadcast dimensions correctly - Handle integer indices on broadcast dims by mapping to 0 - Don't push empty slices through reductions (causes invalid task graphs) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Remove .claude/settings.json (use settings.local.json instead) - Change _da to da in _average() for consistency 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
The legacy BlockView in core.py was using from_graph to return array-expr Arrays when array-expr mode was enabled. This is unnecessary since array-expr mode uses its own BlockView from slicing/_blocks.py via the .blocks property. Update tests to use x.blocks instead of BlockView(x) directly, which is the recommended API and works correctly in both modes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
When a Blockwise has adjust_chunks set, we can't push the exact slice through because input/output chunk boundaries don't align. However, we can still optimize by selecting only the input blocks that contribute to the needed output blocks, then trimming the output if necessary. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Use ComplexWarning from numpy_compat instead of np.exceptions.ComplexWarning which doesn't exist in older NumPy versions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Match legacy behavior: compute result_type on original values before converting to arrays, preserving NumPy's scalar promotion semantics. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add coarse_blockdim() to prefer larger chunks when combining arrays with different chunk granularities. When chunk boundaries align (coarse boundaries are a subset of fine boundaries), use the coarser chunking to reduce task overhead. Falls back to common_blockdim when boundaries don't align. This fixes chunk explosion in xarray groupby patterns where a shuffle-indexed array (with per-element chunks) is combined with an array that has nice chunking. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
For contiguous indexing patterns like np.repeat, this produces output chunks aligned with input chunks (4 chunks instead of 120). Scattered patterns like np.tile are unchanged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
| indexer = np.repeat(np.arange(100), 3) # [0,0,0,1,1,1,...,99,99,99] | ||
| result = x[indexer, :] | ||
|
|
There was a problem hiding this comment.
Here is an example of why a user might chain rechunk with vindex or take; and why dask should optimize that --- What if I had np.repeat(np.arange(100), 30_000) and then decided those chunk sizes were too big and applied a rechunk?
There was a problem hiding this comment.
This is helpful. I didn't pass rechunks through shuffles, but I did make sure that take/vindex don't create chunks that are larger than the chunks of the inputs.
This still doesn't fix the broader problem of "we decided to change the chunking later on". I do see value in this. I think that I'm first trying to find ways to solve problems that don't require the user to know to rechunk. We'll want rechunk push-through anyway though.
| return SliceSlicesIntegers(x, index, allow_getitem_optimization) | ||
|
|
||
|
|
||
| def take(x, index, axis=0): |
There was a problem hiding this comment.
I've never understood why the core take logic is different from vindex. I worked hard to optimize the latter in https://github.com/dask/dask/pull/11625/changes. Can (should) that be reused?
There was a problem hiding this comment.
The logic between vindex with a single axis and take is now unified in d1216dc . I think it should exhibit "best of both worlds" in terms of behaviors, but review on that is welcome.
Both now benefit from Shuffle's _accept_shuffle optimization hooks. Extract _compute_indexer helper for consecutive index grouping. Fix _vindex_slice_and_transpose for uint64 dtype and sparse matrices. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Prevents unbounded chunk growth when using patterns like np.repeat with large repeat factors. Groups larger than the max input chunk size on the shuffle axis are now split into limit-sized pieces. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
The exact taker/sorter count depends on chunk sizing. The test now verifies correctness and that shuffle infrastructure is used, rather than asserting specific counts which are brittle to implementation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
A few high-level thoughts about this PR:
In the future I agree with this. However, currently we are still on this journey to a well oiled AI coding ecosystem. This is the first well-written big AI PR opened in this project, everything else to this point has been slop. We all need to build the muscles around reviewing non-slop. Once we do, it will get easier to merge things like this.
@mrocklin you've not done much reviewing lately so you may not be as burned as some of us are with the current pattern of novice contributors giving an issue link to claude, generating a poor quality PR and opening it for us to review. It's getting tiring. However, this PR is not that. This is the result of a very senior engineer guiding an AI to implement something that is well designed. I'm really excited that this is what the future of development will look like. I'm apprehensive because we are still figuring out what the future of reviewing looks like. My default reaction is to read the code in this PR, but I don't think that's the right approach. Instead I need to interrogate this change with my own AI tools to run/add tests, run benchmarks, find other ways to reassure myself. We all need to get more comfortable working with PRs like this. We can't expect that comfort to happen overnight.
I totally agree with this. The world has changed and we need to roll with it. I would love for us to have a high-level discussion around this at the January community meeting dask/community#434. @mrocklin @dcherian @crusaderky as you've all been heavily engaged here I would love to see you there. |
@jacobtomlinson it would be useful to have you weigh in on #12210
I may not have done this recently, but I'm quite familiar with similar experiences and have nothing but empathy. I think it makes total sense to shut down low-ROI PRs quickly and without empathy.
Thank you so much for saying so. It's actually really important for me to hear that someone cares about this work. I appreciate these kind words Jacob. It's nice to receive some encouragement.
I would welcome a conversation with the people gathered here (and other people who have been reviewing work outside of this PR). I don't think that the community meeting is the place to do that. I think that the community meeting is more for the general public to come and talk about whatever they want to talk about. Maybe developers meet up before the community meeting? I'm around any time after 1:30pm UK time. |
I think we should redefine what we mean by community meeting. For the last few years the general public haven't been coming along to talk about the things they want. Only the power-user/contributor/maintainer group have come together to discuss the project. I think this is good. We should have these conversations in a public space, spectators should be welcome, but speaking time should be proportional to that individual's effort spent improving the project. We should be more disciplined with enforcing this. Under that definition of "community meeting" I think it's the perfect place to discuss this topic. |
I'm fine with that
Whose job will it be to set this expectation, and to enforce this? Historically I think I've found that I have to do this, and then I'm kind of painted as the bad guy, which I don't like. I've found this experience to be stressful and don't want to repeat it. Also, if we are doing this at the community meeting is there a time within the community meeting that would make sense? I'd prefer to skip the other parts if possible (demos, etc.) but am happy to show up to talk about this topic. |
We can update wording in the notes to set expectations and then rely on the czar (me this time) to enforce this.
We have two short demos lined up this month, we can start with those and skip everything else. Then move on to this as the first agenda item. |
|
OK. I'll show up. I'm curious to see how things go. |
|
I have some family stuff scheduled around then. I will try my best to attend but might be 10-15minutes late. |
I'd like to clarify: I really care about this work too. I strongly believe that array expressions are vital to keep dask.array relevant in the medium to long term. What I am against is having something so impactful and prone to regressions delivered in a format that no human can reasonably read. I strongly agree that this needs a high-bandwidth call, with as many maintainers and stakeholders as possible present.
I will attend.
I've been wearing the cop hat at meetings before and I feel empathy. I think however that this kind of pivot deserves as much time as needed and I would not mind if the whole next community meeting was dominated by this discussion. |
Thank you for saying so @crusaderky . That means a lot. In the future I encourage you to lead interactions with similar statements. I think that otherwise you run the risk of demotivating people, and seeming somewhat toxic. |
|
I chatted with @jacobtomlinson earlier today. Zooming out, my sense is that he's excited to talk about the use of AI in Dask, while I'm more interested in talking about whether or not Dask should take on array expressions. The tension around array expressions is between helping Dask evolve and keeping Dask stable. I don't think that there's an obvious correct answer here. I'm excited about array expressions, but there's a very real chance that I work on this for a month, get it into a decent but not perfect state, and then move on to something else. Also, speaking personally, given all the pushback and drama on this PR, and given that no one other than me is speaking up for it, I don't really want to bother without more demand. Given all of that, Jacob and I were thinking that maybe it's better if I go and build this elsewhere. Dask can be the stable thing while I go and work on the new thing. Totally open to other ideas, but that's where my head is at the moment. Still though, "Dask and AI" is a great topic that I think you all should totally discuss. I got what I needed out of my chat with Jacob though so I'll leave you all to it (sometimes you all have nicer conversations without me around anyway, and the community meeting is not my favorite). |
This code was brought over from dask/dask#12207 It is a full implementation of dask array with array expressions.

I went through array expressions with Claude and filled them out. This is a massive PR.
I was paying attention during execution, but not very close attention. There are some things that aren't great I'm sure, but on balance it seems decent. The test suite passes. I think next steps include:
Regarding merging, I think it should be easy for us to merge things on this topic. I think it should be difficult for us to switch the default.