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

Numeric comparisons on strings in table data filters #825

Open
bart-schaefer opened this issue Jun 27, 2024 · 1 comment
Open

Numeric comparisons on strings in table data filters #825

bart-schaefer opened this issue Jun 27, 2024 · 1 comment
Assignees
Labels
enhancement 🚀 New feature or request

Comments

@bart-schaefer
Copy link

bart-schaefer commented Jun 27, 2024

In the table data view, it would be useful to be able to force filters to do a numeric comparison on a char column.

I have a table with a varchar(255) column that has several hundred thousand values that, if represented as numbers, are between 9000 and 20000000, plus a few thousand rows that are a mix of letters and numbers. I would like to filter this for rows where the numeric value of the column is less-than/greater-than something, but the filter always uses string comparisons so I get ASCII ranges instead, which is not useful.

Describe the solution you'd like
One possibility would be for the comparison menu to include separate choices for string vs. numeric comparisons, but that menu is already getting rather long. Alternately this could possibly be combined with #689 so that converting the result to a numeric type would also perform the comparisons that way.

Describe alternatives you've considered
Using a SQL tab and writing a query works.

@Fabio286 Fabio286 added the enhancement 🚀 New feature or request label Jun 28, 2024
@Fabio286
Copy link
Member

Fabio286 commented Jul 4, 2024

I think i will implement a more advanced way to filter, with options to cast, hide columns and more options to compare values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🚀 New feature or request
Projects
Status: 📌 To do
Development

No branches or pull requests

2 participants