TableViz raise Unexpected error when table include null value
See original GitHub issueMake 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 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
when table include number type columns and the value is null
, The TableViz cannot display this table when these columns be selected in NOT GROUPED BY
Superset version
0.26.3 On centos7 + Python 3.6.5
Expected results
Actual results
Unexpected error.
Steps to reproduce
Table DDL:
CREATE TABLE testt ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(255) DEFAULT NULL, value int(255) DEFAULT NULL, PRIMARY KEY (
id) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
Data:
id | name | value |
---|---|---|
1 | aaa | 1 |
2 | bbb | |
3 | ccc | 3 |
4 | ddd |
And choose these three columns in TableViz’s NOT GROUPED BY
selector.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Columns with NULL data throw "Unexpected Error" in Table ...
Table View chart to load when column data contains NULL's. ... TableViz raise Unexpected error when table include null value #5604.
Read more >MySQL Alter table causes Error: Invalid use of NULL value
It looks like there are few rows with NULL value.Update all null values to a default date in that column and then try...
Read more >An unexpected error has occured: Value cannot be Null
It appears that the error is being caused by blank, empty or null values in the Code field (Dimension Code) of the Dimension...
Read more >"An unexpected error has occurred in Rule Asset: null" when ...
When comparing 2 attributes and the 2nd attribute is null the mentioned violation is thrown during rule testing.
Read more >Error 515 - Sybase Infocenter
Attempt to insert NULL value into column '%. ... The error message includes: ... which includes the database name, owner, table name, and...
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
the
master
is ok…but i think it’s not a good idea to fill number typenull
to0
.In some casenull
is not mean0
.This is a duplicate of #5353