ApproxCountDistinctMergeFunction should return Int value because the dataType of ApproxCountDistinct is IntegerType.