presto-main/src/main/java/io/prestosql/cost/ScalarStatsCalculator.java/ScalarStatsCalculator/isIntegralType
class ScalarStatsCalculator:        private boolean isIntegralType(Type type)
        {
            if (type instanceof BigintType || type instanceof IntegerType || type instanceof SmallintType || type instanceof TinyintType) {
                return true;
            }

            if (type instanceof DecimalType) {
                return ((DecimalType) type).getScale() == 0;
            }

            return false;
        }