question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[chart]Error loading graph when IS (NOT) NULL filter is present

See original GitHub issue

Table 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

image

How to reproduce the bug

  1. Open dashboard with already created Table chart
  2. 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:open
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
dusatvojcommented, Apr 20, 2021

@rumbin Better? 😄

0reactions
stale[bot]commented, May 2, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found