-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
[explore] Filtering on int or numeric column: 'list' object has no attribute 'isdigit' #3005
Comments
Possible fix (?)In utils.py, function string_to_num, there is the following test included:
If we add just another test for numeric lists, everything seems to work again:
Or both tests combined:
As I do not know if these approaches are clean enough and which one to prefer, I would appreciate if a more experienced user could step in… |
I noticed that there may also be lists of strings, e.g. for timestamps (without timezone).
@mistercrunch Could you please step in, as I'm not sure if any of this makes sense? Are my corrections placed at a sensible position or should they rather be done in models.py? |
I've also had this problem. Have you solved it? @rumbin |
@Mark-uiojxx Could you please tell which database you are using? I would like to figure out if this issue only exists for PostgreSQL. |
@rumbin MySQL.Sorry for late reply! |
In superset 0.18.5 the bug seems to be gone again. I tested it in a clean venv. @Mark-uiojxx Can I close the issue, or do you still encounter problems using the recent release? |
@rumbin OK |
Make sure these boxes are checked before submitting your issue - thank you!
Superset version
0.18.4, with ProstgreSQL as both superset management DB and data warehouse.
Expected results
Queries with applied filters on values of columns of type integer or numeric work.
Actual results
The query fails with the following Traceback:
This behavior was not present in superset==0.18.2.
I suspect #2908 and/or #2671 to be the culprit.
Steps to reproduce
Apply a filter on a numeric or integer column and run the query.
I don't know, however, to which extent this issue is specific to the ProstgreSQL DB backend.
The text was updated successfully, but these errors were encountered: