TEIID-2747 ensuring proper distinct detection with dup_remove_sort used
by sort_distinct