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.

TableViz raise Unexpected error when table include null value

See original GitHub issue

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 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Wujiao233commented, Aug 11, 2018

the master is ok…but i think it’s not a good idea to fill number type null to 0 .In some case null is not mean 0 .

1reaction
villebrocommented, Aug 11, 2018

This is a duplicate of #5353

Read more comments on GitHub >

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

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