[WIP][SPARK-2554][SQL] CountDistinct and SumDistinct should do partial aggregation

Sorry, I mean exception raised here.