Skip to content
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

add support for filtering missing or empty data #1344

Open
junaidzm13 opened this issue May 17, 2024 · 3 comments
Open

add support for filtering missing or empty data #1344

junaidzm13 opened this issue May 17, 2024 · 3 comments
Labels
enhancement New feature or request server UI user Interface

Comments

@junaidzm13
Copy link
Contributor

Feature Request

Description of Problem:

Currently, VUU doesn't have a way to filter for/out missing data. Missing data could be anything from value being null to "" (for string data type).

Preliminary analysis shows that it would be quite tricky on the server as well as the UI to support filtering of null values with our current filter operators. For example, if we try supporting null for = filter, then on the server side the parsing is relatively straightforward, but how would typeahead work for example? Similarly on the UI for example we expect numeric filters to have only valid numeric values, which means re-working our current components to be able to work with numeric as well as null or some special string representation of null? Also, how would we support null values for = filter and not allow it for other operators where is doesn't make sense e.g. order comparison > or <?

Potential Solutions:

One of the potential solutions could be to introduce new filter operator(s) to support filtering of missing or empty data.

For example, we can have two operators is and is not, with possible enum based values MISSING and EMPTY which are then converted to the relevant underlying values null and "" on the server side before applying filters.

Reference: this is also how SQL supports searching for NULL values for example: WHERE column_x IS NULL.

@junaidzm13 junaidzm13 added enhancement New feature or request server UI user Interface labels May 17, 2024
@chrisjstevo
Copy link
Contributor

I'm would check the tableDef on the table itself for whether the column conceptually exists.

Need to check when we do this tho, might be computationally expensive to do on every row.get call

@junaidzm13
Copy link
Contributor Author

This is more about missing data i.e. row having a value null or "" for a certain valid column. Currently, we don't have a way to filter for those. For instance, a user wants to see all the rows where price is not missing, for now we can't do this in Vuu.

@naleeha
Copy link
Contributor

naleeha commented May 23, 2024

Need to also look at support for the null or other concepts of missing data in a calculated column
Currently its not part of parser syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request server UI user Interface
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants