Problem: SELECT DISTINCT (non-distribution column) Citus supports SELECT DISTINCT col but only when col is the shard distribution column. If it is not, use GROUP BY as a simple workaround: select col from table group by col;
This query doesn't count distinct though. Does it work if we wrap it in a query that counts?