diff --git a/scripts-available/CDB_DistinctMeasure.sql b/scripts-available/CDB_DistinctMeasure.sql index b5f2cce..228a0c7 100644 --- a/scripts-available/CDB_DistinctMeasure.sql +++ b/scripts-available/CDB_DistinctMeasure.sql @@ -36,10 +36,8 @@ BEGIN INTO maxval USING element_count, in_array; - passes = CASE WHEN maxval >= threshold - THEN TRUE - ELSE FALSE - END; + passes = (maxval >= threshold); + RETURN passes; END; $$ language plpgsql IMMUTABLE;