-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aggregation is not compatible with order_by
on the Postgres backend
#10321
Comments
We probably need to find the Not sure how this will work for more complex nested queries. |
Trying to debug - the SQL query is following:
|
So the problem lies in the I have rephrased the query:
(also removed the
|
The investigation yields the following observations:
|
I also was hoping that adding
|
Concatenate
aggregation is not compatible with order_by
on the Postgres backendorder_by
on the Postgres backend
I just checked and this is not specific to
Indeed it does not seem right to |
Radosław Waśko reports a new STANDUP for yesterday (2024-07-25): Progress: Final stuff with relative paths PR. Investigated the Postgres sort+aggregate issue - found a relatively simple fix and implemented it. It should be finished by 2024-07-25. Next Day: Next day I will be working on the #9812 task. Now do work on types. |
□ Graceful errorWhile working on #10319 I tried introducing deterministic ordering into my input tables, by adding
order_by
with an 'index' column.I have noticed that concat
aggregate
breaks if the table was ordered before.Repro (e.g. in REPL):
Expected behaviour
Both sorted and unsorted version should work and return a new table. The unsorted version may have an unspecified ordering in the concatenated string.
Actual behaviour
The line
IO.println r_sorted.print
currently prints:The text was updated successfully, but these errors were encountered: