diff --git a/src/metabase/feature_extraction/insights.clj b/src/metabase/feature_extraction/insights.clj index b2c2d35bfdba2f0d9554475531b55316a5f00309..c3d3b8928100aa34f6cff958e262a731735e0d31 100644 --- a/src/metabase/feature_extraction/insights.clj +++ b/src/metabase/feature_extraction/insights.clj @@ -32,7 +32,7 @@ (definsight nils "Are there any nils in the data?" [nil% field count] - (when (pos? nil%) + (when (some-> nil% pos?) {:quality (if (< nil% (/ (Math/log (inc count)))) :some :many) @@ -41,7 +41,7 @@ (definsight zeros "Are there any 0s in the data?" [zero% field count] - (when (pos? zero%) + (when (some-> zero% pos?) {:quality (if (< zero% (/ (Math/log (inc count)))) :some :many)