Skip to content

fix: include parameter columns in CSV when using --reference (fixes #852)#877

Open
leno23 wants to merge 1 commit into
sharkdp:masterfrom
leno23:fix/csv-reference-parameter-columns-852
Open

fix: include parameter columns in CSV when using --reference (fixes #852)#877
leno23 wants to merge 1 commit into
sharkdp:masterfrom
leno23:fix/csv-reference-parameter-columns-852

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 16, 2026

Summary

  • Fixes CSV export when --reference is combined with --parameter-scan / -L.
  • Derive parameter column names from the first result that has parameters (not .first(), which may be the reference row with an empty parameter map).
  • Emit empty parameter fields for the reference row.

Test plan

  • cargo test --bin hyperfine test_csv test_csv_with_reference
  • cargo clippy -- -D warnings
  • CI

Closes #852

Made with Cursor

When --reference is combined with parameter scans, the reference row has
no parameters but was used to build the CSV header, causing a field-count
mismatch on subsequent rows.

Fixes sharkdp#852

Co-authored-by: Cursor <cursoragent@cursor.com>
@leno23
Copy link
Copy Markdown
Author

leno23 commented May 16, 2026

CI is green on all targets. Ready for review when convenient — thanks!

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.

CSV error when using parameters with --reference

1 participant