From 8d3cc2409475cfb147a71de2fd0a796af5dab1df Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 15 Apr 2026 08:52:09 -0400 Subject: [PATCH] Pivot: skip inspector query when no group_by hierarchy is active Without group_by there are no coordinate filters, so the view query would return the full dataset and hang. Early-return on click if config.group_by is empty. Co-Authored-By: Claude Sonnet 4.6 --- ui/src/pages/Pivot.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/src/pages/Pivot.jsx b/ui/src/pages/Pivot.jsx index 7d2c98f..f10b2be 100644 --- a/ui/src/pages/Pivot.jsx +++ b/ui/src/pages/Pivot.jsx @@ -150,6 +150,12 @@ export default function Pivot({ source }) { if (!row) return const eventFilters = (detail.config || {}).filter || [] const config = await viewer.save() + + // Without a group_by hierarchy there are no coordinate filters, so the + // query would return the entire dataset — skip the inspector in that case + const hasHierarchy = (config.group_by || []).length > 0 + if (!hasHierarchy) return + setClickDetail({ row, config, column_names, eventFilters }) // Use a Perspective view with the event filters + expressions so computed