Skip to content

Skip queries that fail on every filtered system#876

Merged
alexey-milovidov merged 1 commit into
mainfrom
fix-chart-all-fail-queries
May 8, 2026
Merged

Skip queries that fail on every filtered system#876
alexey-milovidov merged 1 commit into
mainfrom
fix-chart-all-fail-queries

Conversation

@alexey-milovidov
Copy link
Copy Markdown
Member

Summary

  • When every selected system returns null for a query, the per-query baseline becomes Math.min() over an empty set (Infinity), so log(curr / Infinity) = -Infinity collapses every system's geometric mean to 0. All bars then render with width 0 and the chart appears empty.
  • Fix: in relativeQueryTime, skip queries whose baseline is non-finite, and return null if no queries remain.

Reproduction

Filter on the dashboard to Elasticsearch + Quickwit (e.g. this URL) — Q28 (REGEXP_REPLACE) fails on both, and the bar chart vanishes. With the fix, Q28 is skipped from the geometric mean and bars render normally.

Test plan

  • Reproduce empty chart with Elasticsearch + Quickwit filter on current main
  • Verify ratios are non-zero after the fix (cold/hot summaries computed locally)
  • Spot-check that detail rows still show ☠ for Q28 and that other filter combinations are unaffected

🤖 Generated with Claude Code

When all selected systems return null for a query, the per-query baseline
becomes Math.min() over an empty set (Infinity), which makes
log(curr/Infinity) = -Infinity and collapses every system's geometric
mean to 0 - bars render with width 0 and the chart appears empty.

Reproduction: filter to Elasticsearch + Quickwit (Q28's REGEXP_REPLACE
fails on both).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@alexey-milovidov alexey-milovidov self-assigned this May 8, 2026
@alexey-milovidov alexey-milovidov merged commit 91ab875 into main May 8, 2026
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