<b>6.0.0.2454</b>
Latest QA run:
SS: UTC 2026.11.07 21:47:23 - 2026.11.07 23:52:27
CS: UTC 2026.11.07 23:53:09 - 2026.11.08 02:36:25
-------------------------------------------------
GitHub Action 2026.11.06 23:57:02 <span class="t_gh_bot">increment build number</span>
-------------------------------------------------
Closest previous non-bot:
<b>6.0.0.2452</b>
Dmitry Yemanov 2026.11.06 16:55:03
Fix PERCENTILE_CONT and PERCENTILE_DISC with a sub-select in WITHIN GROUP
The value argument of a percentile aggregate is the same node as the first
expression of the WITHIN GROUP (ORDER BY ...) clause: the constructor
aliases valueArg from the order clause. dsqlCopy() passed only the order
clause, so valueArg was never passed on its own and remained the very node
emitted by GEN_sort(). genBlr() therefore wrote the same sub-select context
twice into the BLR, which failed to parse with "context already in use
(BLR error)" (isc_ctxinuse).
Pass valueArg separately in dsqlCopy() so it becomes a distinct node with
its own context. The emitted BLR keeps its existing shape.

Changed paths:
  M src/dsql/AggNodes.cpp