Skip to content

app/vlselect: avoid crash on empty CSV results - #1593

Draft
func25 wants to merge 1 commit into
masterfrom
fix-empty-csv
Draft

app/vlselect: avoid crash on empty CSV results#1593
func25 wants to merge 1 commit into
masterfrom
fix-empty-csv

Conversation

@func25

@func25 func25 commented Jul 10, 2026

Copy link
Copy Markdown
Member

Fixes #1592

CSV queries could crash vlselect when

  • a trailing filter hide the known output fields or
  • when field discovery pass returned no fields.

Fixes by preserving fixed fields through filter pipes and guards the empty fields case

Also moves the startTime before field discovery so CSV scan time is included in the request duration.

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.

Panic in vlselect on empty result set from "| stats count() | filter" when format=csv

1 participant