Hi Kirill,

On 25 Nov 2026, Kirill Reshke wrote:
> There are more cases with wrong results (all because of subquery-style
> query rewrite, all cures with 0001).

The SQL draft I checked specifies this subquery rewrite: 7.18
"<search or cycle clause>", Syntax Rule 8, puts the cycle-mark filter
in the outer WHERE, as our current implementation does.

Also, 7.17 "<query expression>", SR 3)j)ix)5)C)II, prohibits window
functions in the recursive SELECT. Supporting them is our extension,
so the standard does not prescribe the window results in your example.

Could you clarify which semantics you want to propose for these extensions
before treating this as a bug fix?

Thank you!


Best regards, Andrey Borodin.



Reply via email to