Issue #2795919 by daffie, rpayanm: Change SelectComplexTest::testDistinct to test the distinct values not the count (cherry picked from commit 4df74826)