[chart]Error loading graph when IS (NOT) NULL filter is present
See original GitHub issueTable
chart created before upgrade to 1.1.0
but after upgrade there’s error.
Expected results
Table
chart shown ok
Actual results
Not working Table
chart
Screenshots
How to reproduce the bug
- Open dashboard with already created
Table
chart - See error
Environment
(please complete the following information):
- superset version:
1.1.0
- python version:
3.8.7
- node.js version:
v12.21.0
Checklist
Make sure to follow these steps before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if there are any.
- I have reproduced the issue with at least the latest released version of superset.
- I have checked the issue tracker for the same issue and I haven’t found one similar.
Additional context
Log:
Apr 15 21:02:42 node6 python3.8[1195778]: 'val'
Apr 15 21:02:42 node6 python3.8[1195778]: Traceback (most recent call last):
Apr 15 21:02:42 node6 python3.8[1195778]: File "/usr/local/lib/python3.8/site-packages/superset/common/query_context.py", line 361, in get_df_payload
Apr 15 21:02:42 node6 python3.8[1195778]: query_result = self.get_query_result(query_obj)
Apr 15 21:02:42 node6 python3.8[1195778]: File "/usr/local/lib/python3.8/site-packages/superset/common/query_context.py", line 114, in get_query_result
Apr 15 21:02:42 node6 python3.8[1195778]: result = self.datasource.query(query_object.to_dict())
Apr 15 21:02:42 node6 python3.8[1195778]: File "/usr/local/lib/python3.8/site-packages/superset/connectors/sqla/models.py", line 1313, in query
Apr 15 21:02:42 node6 python3.8[1195778]: query_str_ext = self.get_query_str_extended(query_obj)
Apr 15 21:02:42 node6 python3.8[1195778]: File "/usr/local/lib/python3.8/site-packages/superset/connectors/sqla/models.py", line 772, in get_query_str_extended
Apr 15 21:02:42 node6 python3.8[1195778]: sqlaq = self.get_sqla_query(**query_obj)
Apr 15 21:02:42 node6 python3.8[1195778]: File "/usr/local/lib/python3.8/site-packages/superset/connectors/sqla/models.py", line 1080, in get_sqla_query
Apr 15 21:02:42 node6 python3.8[1195778]: eq = utils.cast_to_num(flt["val"])
Apr 15 21:02:42 node6 python3.8[1195778]: KeyError: 'val'
Apr 15 21:02:42 node6 python3.8[1195778]: ERROR:superset.common.query_context:'val'
Apr 15 21:02:42 node6 python3.8[1195778]: Traceback (most recent call last):
Apr 15 21:02:42 node6 python3.8[1195778]: File "/usr/local/lib/python3.8/site-packages/superset/common/query_context.py", line 361, in get_df_payload
Apr 15 21:02:42 node6 python3.8[1195778]: query_result = self.get_query_result(query_obj)
Apr 15 21:02:42 node6 python3.8[1195778]: File "/usr/local/lib/python3.8/site-packages/superset/common/query_context.py", line 114, in get_query_result
Apr 15 21:02:42 node6 python3.8[1195778]: result = self.datasource.query(query_object.to_dict())
Apr 15 21:02:42 node6 python3.8[1195778]: File "/usr/local/lib/python3.8/site-packages/superset/connectors/sqla/models.py", line 1313, in query
Apr 15 21:02:42 node6 python3.8[1195778]: query_str_ext = self.get_query_str_extended(query_obj)
Apr 15 21:02:42 node6 python3.8[1195778]: File "/usr/local/lib/python3.8/site-packages/superset/connectors/sqla/models.py", line 772, in get_query_str_extended
Apr 15 21:02:42 node6 python3.8[1195778]: sqlaq = self.get_sqla_query(**query_obj)
Apr 15 21:02:42 node6 python3.8[1195778]: File "/usr/local/lib/python3.8/site-packages/superset/connectors/sqla/models.py", line 1080, in get_sqla_query
Apr 15 21:02:42 node6 python3.8[1195778]: eq = utils.cast_to_num(flt["val"])
Apr 15 21:02:42 node6 python3.8[1195778]: KeyError: 'val'
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Error generating chart: No features contain non-null values of ...
Image collection byMonthYear doesn't have values of 'system:time_start'. For fixing this you have to do: var byMonthYear = ee.
Read more >Troubleshooting Charts - - O-FISH Docs
Some common issues and their fixes are: 1. Error loading data for this chart (error code: 7). User filter is not allowed. This...
Read more >How tofilter out empty entries when creating a pie chart?
Look at exist query, search for "mapping", then you will see that you can define the null value, you can define that null...
Read more >Chart disappears after rerender - Salesforce Developers
Visualforce Chart: Error loading configuration for chart 'jid0jid29jid55jid56jid57jid64': Did not find required field 'ftRev,tgtRev' in data ...
Read more >Interactive Charts using Google Visualization API v2.0
For uses that are not site collection administrators, the loading of the ... The edit button is found in the top left corner...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rumbin Better? 😄
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue
.pinned
to prevent stale bot from closing the issue.