Bug fix for distribution result.
Bug fix for distribution result.

Reported and provided by Jaimin Pan

arcivanov/postgres-xl,arcivanov/postgres-xl,arcivanov/postgres-xl,arcivanov/postgres-xl,arcivanov/postgres-xl,arcivanov/postgres-xl