Apr 2025

1 commit
Fix issue with ORDER BY / DISTINCT aggregates and FILTER
20 Apr 2025David Rowleymaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1REL_17_STABLE17.5REL_16_STABLE16.9
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #30 of 1 reviewer saw the final version

The commit preserves the argument-safety checks from #3 in src/backend/optimizer/plan/planner.c but replaces strip_implicit_coercions() with stripping only RelabelType nodes before accepting Vars or Consts. It also revises the aggregates regression tests and updates src/test/regress/expected/sqljson.out, consistent with David Rowley's explanation of his final adjustments #11.

  • Tom Lanesaw an earlier versionLLM analysis, 96% sureTom proposed the argument-safety approach #2 and challenged FILTER-related sorting costs after the draft #4, but the final cast-handling logic changed afterward #11.

Credits across 1 commit

Author
David Rowley1
Reported by
Kaimeh1
Committer
David Rowley1