You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading chart based on a presto table that has null column type get an error on this line because type_ is None. @villebro looks like this was added here
Expected results
Chart should load
Actual results
Error on chart
File "/srv/superset-internal/incubator-superset/superset/db_engine_specs/base.py", line 901, in get_sqla_column_type
match = regex.match(type_)
TypeError: expected string or bytes-like object
How to reproduce the bug
Create a datasource with columns that have null types
Try to create a chart with the datasource
Environment
(please complete the following information):
superset version: master
python version: 3.7
Checklist
Make sure these boxes are checked 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.
The text was updated successfully, but these errors were encountered:
Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.91. Please mark this comment with 👍 or 👎 to give our bot feedback!
@michellethomas I'd like to add some unit tests to minimize risk of future breakage, as currently the methods are quite light on unit tests and are fairly complex. Would you be able to provide me with a few complex nested data types that you've encountered in your env that I could use as a template for a few unit tests? Ping @john-bodley
When loading chart based on a presto table that has null column type get an error on this line because type_ is None. @villebro looks like this was added here
Expected results
Chart should load
Actual results
Error on chart
How to reproduce the bug
Environment
(please complete the following information):
master
3.7
Checklist
Make sure these boxes are checked before submitting your issue - thank you!
The text was updated successfully, but these errors were encountered: