datacamp / sqlwhat

https://sqlwhat.readthedocs.io
GNU Affero General Public License v3.0
3 stars 8 forks source link

using digits=n causes error / question #106

Closed colinricardo closed 7 years ago

colinricardo commented 7 years ago

Outline

When using digits= kwarg of test_column() I get the following error:

screen shot 2017-06-06 at 11 16 05 am

SCT works fine when digits=2 is removed.

Am I doing something wrong?

machow commented 7 years ago

Shoot--no, this is a bug. In python, NULL values in the results are converted to None. But this throws an error when passed to the round function.

For context on the error message, in python the round function is just a fancy way of calling an object's __round__ method.

machow commented 7 years ago

fix is live!