Fix PlanCompiler
output type for DISTINCT
+ ORDER BY
#1298
Merged
PlanCompiler
output type for DISTINCT
+ ORDER BY
#1298