Skip to content

refactor: Prefer consistent use of "function" pattern instead of nonlocal - #185

Merged
orlp merged 1 commit into
pola-rs:mainfrom
alexander-beedie:prefer-func-pattern
Sep 4, 2026
Merged

orlp merged 1 commit into
pola-rs:mainfrom
alexander-beedie:prefer-func-pattern

Conversation

@alexander-beedie

@alexander-beedie alexander-beedie commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Made the function pattern consistent across all benchmarks - the nonlocal overwrite can cause issues with multiple runs in a single session. We already use the function pattern in an other queries/tests, so this is consistent as well as fixing some edge-cases.

Also fixes some benchmarks running on macOS (ref: "MODIN_MEMORY" env).

@0guban0v

0guban0v commented Sep 2, 2026

Copy link
Copy Markdown

Could this get reviewer(s)? Current benchmark workflow fails at Dask Q1 and never reaches Modin, but still reports success. This PR fixes callable rebinding behind that failure and unblocks follow-up work to make benchmark CI status truthful.

cc: @ritchie46 , @orlp

@orlp orlp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The nonlocal stuff seems fine to me but the modin changes really should be its own PR.

@alexander-beedie

Copy link
Copy Markdown
Contributor Author

The nonlocal stuff seems fine to me but the modin changes really should be its own PR.

Yup, good call; split out into #195 👌

@orlp
orlp merged commit 77d2e7e into pola-rs:main Sep 4, 2026
3 checks passed
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.

3 participants