Improve error message when using DISTINCT with non-comparable type