Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
Impala 2.2
-
None
Description
TCounterType::DOUBLE_VALUE seems to exist only to force PrettyPrinter::Print() to use 2 decimal places, where TCounterType::UNIT would only use 2dp if the value was sufficiently large.
We should either force the caller to provide a required precision to Print(), or replace DOUBLE_VALUE with FIXED_PRECISION (and remove the unnecessary cast) to enforce this behaviour.