Skip to content

Explorer refresh after OPFS add, unique counts shown as estimates - #68

Merged
caioricciuti merged 1 commit into
mainfrom
fix/explorer-refresh-stats-approx
Oct 2, 2026
Merged

caioricciuti merged 1 commit into
mainfrom
fix/explorer-refresh-stats-approx

Conversation

@caioricciuti

Copy link
Copy Markdown
Owner

Two findings from the browser pass. Adding a browser-storage connection made it active but the explorer kept the previous catalog until the next query; the add path now refetches the schema like a switch does, and a failed fetch does not fail the add (slice test). The Stats cards took SUMMARIZE's approx_unique, a HyperLogLog estimate, as exact, giving things like Unique 41 on 40 rows and Cardinality 120%; the count is now capped at the number of non-null rows, cardinality at 100%, and both are shown with an approximately sign.

@caioricciuti
caioricciuti merged commit bfb104d into main Oct 2, 2026
5 of 6 checks passed
@caioricciuti
caioricciuti deleted the fix/explorer-refresh-stats-approx branch October 2, 2026 22:35
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