Conversation
|
thanks @julien-pinchelimouroux ! would you mind adding a small test?
could we use, from #3200 I also see lots of snapshot files in the diff — where are those from? (sorry if I'm missing something...) |
|
Hello @max-sixty ! snap files comes from the following added tests :
They are based on the reported query in the original issue #3200 |
|
Maybe a note should be added to the CHANGELOG file? |
|
ah thanks @julien-pinchelimouroux ! could we slim down the test a bit, unless we really need two full integration tests? I'd have thought this could just be a single inline test in prqlc/prqlc/tests/integration/sql.rs ? |
|
Hi @max-sixty |
|
great! thank you @julien-pinchelimouroux |
Fixes: #3200
sortalways required sorted columns which caused an unwanted column selection in the nextaggregate:column <SORTED_COLUMN> must appear in the GROUP BY clause or be used in an aggregate functionTo fix it, it simply checks if an
aggregateis present in the following transformsI didn't find a PRQL query where this change can be a regression. If you have something in mind, please share it! 🙏