Open mbroecheler opened 5 months ago
The issue is during SqrlToSql translation when we have to rebuild the select list for the distinct statement. We should continue to honor the user's casing and remove the other references to that column.
Why is it case sensitive in this particular instance?
It's throwing an error because it is case insensitive. There are two columns named 'merchantid' with different casing and that is invalid for case insensitive column ambiguity rules. The solution is to exclude the second 'merchantid' with the original casing.
When I write the following DISTINCT ON statement:
The compiler throws an exception:
If I change the name of the column to
merchantId
(which is the name in the schema) then it works.