distinct
produces an erroneous error message
#69
Labels
1.0.0
Issues/PR's related to the 1.0.0 release
distinct
produces an erroneous error message
#69
Snowflex does not properly account for Ecto passing in an order for distinct queries.
The following code:
Produces this compiled Ecto query:
Snowflex crashes due to this line.
Snowflake does not natively support DISTINCT ON, which is where the order by becomes important. As such, we should probably just ignore the order values?
WORKAROUND:
If you pass in a
select
and only select 1 field, this will work as expected.The text was updated successfully, but these errors were encountered: