Skip to content

Collapse redundant run-arg id lists in benchmark_runner cli#9

Open
alamb wants to merge 1 commit into
Omega359:benchmark-runner-info-queryfrom
alamb:alamb/benchmark-runner-cli-arg-ids
Open

Collapse redundant run-arg id lists in benchmark_runner cli#9
alamb wants to merge 1 commit into
Omega359:benchmark-runner-info-queryfrom
alamb:alamb/benchmark-runner-cli-arg-ids

Conversation

@alamb
Copy link
Copy Markdown

@alamb alamb commented May 26, 2026

Which issue does this PR close?

Rationale for this change

While simplifying benchmarks/src/benchmark_runner/cli.rs I noticed RUN_ENV_ARG_IDS and DATAFUSION_ARG_IDS were almost-identical lists, differing only by iterations. Every CommonOpt arg has an env, so hiding env annotations on all args lets me drop the duplicate list (and its helper) entirely.

Here is a proposal for your consideration

`RUN_ENV_ARG_IDS` listed every `CommonOpt` arg in order to hide their
env-variable annotations from `run` help. Every `CommonOpt` field
carries an `env` and none of the hand-added run args do, so hiding env
on every argument via `Command::mut_args` is equivalent and removes the
list that nearly (but not exactly) duplicated `DATAFUSION_ARG_IDS`.

Also removes the now-unused `hide_env_annotations` helper and documents
that `DATAFUSION_ARG_IDS` is every `CommonOpt` arg except `iterations`.

Rendered `run` help output is unchanged.
@alamb alamb marked this pull request as ready for review May 26, 2026 19:01
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.

1 participant