Skip to content

Support '0' value for parse_capacity_limit()#22014

Open
mkleen wants to merge 1 commit intoapache:mainfrom
mkleen:capacity-0
Open

Support '0' value for parse_capacity_limit()#22014
mkleen wants to merge 1 commit intoapache:mainfrom
mkleen:capacity-0

Conversation

@mkleen
Copy link
Copy Markdown
Contributor

@mkleen mkleen commented May 5, 2026

Which issue does this PR close?

  • None

Rationale for this change

This extends parse_capacity_limit() to support `0` to set a limit of 0 instead of using `0k`.
This simplifies configuration and avoids confusion with the word `OK` (Okay).
This is based on the suggestion from @martin-g.

Usage:

SET datafusion.runtime.example_limit = '0'

instead of:

SET datafusion.runtime.example_limit = '0k'

What changes are included in this PR?

see above.

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant