-
Notifications
You must be signed in to change notification settings - Fork 14k
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
Integer filter values result in error for Boxplot visualizations #1441
Comments
I am having the same issue with 0.11.0. |
@mwullink Workaround I've been using so far is to cast the integer column as another type such as varchar in the table configuration. Works just fine for filtering purposes. |
Notice: this issue has been closed because it has been inactive for 536 days. Feel free to comment and request for this issue to be reopened. |
zhaoyongjie
added a commit
to zhaoyongjie/incubator-superset
that referenced
this issue
Nov 17, 2021
zhaoyongjie
added a commit
to zhaoyongjie/incubator-superset
that referenced
this issue
Nov 24, 2021
zhaoyongjie
added a commit
to zhaoyongjie/incubator-superset
that referenced
this issue
Nov 25, 2021
zhaoyongjie
added a commit
to zhaoyongjie/incubator-superset
that referenced
this issue
Nov 26, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure these boxes are checked before submitting your issue - thank you!
2016-10-27 00:05:55,609:ERROR:root:argument of type 'int' is not iterable
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/caravel/views.py", line 1183, in explore
viz_obj.get_json(),
File "/usr/local/lib/python2.7/dist-packages/caravel/viz.py", line 318, in get_json
'data': self.get_data(),
File "/usr/local/lib/python2.7/dist-packages/caravel/viz.py", line 816, in get_data
df = self.get_df()
File "/usr/local/lib/python2.7/dist-packages/caravel/viz.py", line 737, in get_df
df = super(BoxPlotViz, self).get_df(query_obj)
File "/usr/local/lib/python2.7/dist-packages/caravel/viz.py", line 153, in get_df
query_obj = self.query_obj()
File "/usr/local/lib/python2.7/dist-packages/caravel/viz.py", line 271, in query_obj
'filter': self.query_filters(),
File "/usr/local/lib/python2.7/dist-packages/caravel/viz.py", line 225, in query_filters
vals = ["'{}'".format(x) if "," in x else x for x in vals]
TypeError: argument of type 'int' is not iterable
Caravel version
0.11.0
Expected results
After selecting an INTEGER type value from a Filter box dropdown selector, any Boxplot type slice to be impacted by that filter is correctly filtered.
Actual results
After selecting an INTEGER type value from a Filter box dropdown selector, any Boxplot type slice to be impacted by that filter errors out with "TypeError: argument of type 'int' is not iterable".
Steps to reproduce
The text was updated successfully, but these errors were encountered: