Revert "Revert "bug fix to allow holistic distinct count be aggregate only once in coprocessor""

This reverts commit e890767abbd87943fa3a7d83dbdb2ab259aa7d18.