Skip to content
Snippets Groups Projects
Unverified Commit 6bbbc0ba authored by Case Nelson's avatar Case Nelson Committed by GitHub
Browse files

Fix pivots that specify an aggregation `:order-by` (#28545)

Fixes #22872

In #21839, all order-bys were removed from pivot queries because columns
in `ORDER BY` had to appear in `GROUP BY` clauses. Unfortunately that
removed legal order by columns (e.g. count) from being applied.

This now keeps aggregation columns in field defs to restore the sorting
behaviour.
parent fe59312b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment