-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter by single value does not work #67
Comments
Oh, interesting! This is an edge case I hadn't considered. I'm wondering how we could make the "unique" bar more generally selectable (not just for one value). Right now the query for the "value counts" is a bit convoluted. I tried to push down the aggregation of uniqueness to duckdb so I'd return fewer entries to the client (e.g., in the case where the data is large and all values are unique). quak/lib/clients/ValueCounts.ts Lines 59 to 84 in 3dbcc8b
So right now, the table I get back from duckdb looks like:
This structure means the client doesn't have direct access to the actual unique values. I’m wondering whether we could rethink the approach to selecting unique values, making them more broadly selectable rather than limited to just a single unique value. For instance, we could use a predicate to exclude values like "A" and "C," allowing the "unique" bar to represent a broader, more flexible selection. Curious what you think. |
You could filer to the unique values with something like this maybe: SELECT column_name
FROM table_name
GROUP BY column_name
HAVING COUNT(*) = 1; |
If there is a unique value, the profile shows it but when I click on it, the matching row is not shown.
The text was updated successfully, but these errors were encountered: