Skip to content

Fix mixed HLG/Expr handling in _ExprSequence._simplify_down#12081

Merged
jacobtomlinson merged 1 commit intodask:mainfrom
rjzamora:fix-expr-sequence-handling
Sep 24, 2025
Merged

Fix mixed HLG/Expr handling in _ExprSequence._simplify_down#12081
jacobtomlinson merged 1 commit intodask:mainfrom
rjzamora:fix-expr-sequence-handling

Conversation

@rjzamora
Copy link
Copy Markdown
Member

@rjzamora rjzamora commented Sep 23, 2025

The current logic in _ExprSequence._simplify_down only works when the non-Expr objects come before proper Expr objects in the sequence. This PR implements a simple fix and adds test coverage.

Note that the user in dask/distributed#9117 will still get a warning when they mix the Delayed object with a DataFrame expression. However, their reproducer should work with the change in this PR.

@rjzamora rjzamora self-assigned this Sep 23, 2025
@rjzamora rjzamora added the bug Something is broken label Sep 23, 2025
@github-actions
Copy link
Copy Markdown
Contributor

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

      9 files  ±0        9 suites  ±0   3h 21m 56s ⏱️ + 3m 37s
 18 065 tests +1   16 847 ✅ ± 0   1 217 💤 ±0  1 ❌ +1 
161 659 runs  +9  149 540 ✅ +10  12 118 💤  - 2  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 52491bd. ± Comparison against base commit 417374d.

Copy link
Copy Markdown
Member

@jacobtomlinson jacobtomlinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for jumping on this @rjzamora

@jacobtomlinson
Copy link
Copy Markdown
Member

One of the jobs failed in what looks like an unexpected way. Rerunning it.

@jacobtomlinson
Copy link
Copy Markdown
Member

It passed after rerunning. Merging

@jacobtomlinson jacobtomlinson merged commit b804291 into dask:main Sep 24, 2025
40 of 42 checks passed
@rjzamora rjzamora deleted the fix-expr-sequence-handling branch September 24, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants