You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
repeat_row: Make subquery guard aware of negative diffs (#36185)
This is the 4. PR in the `repeat_row` productionization work stream.
This resolves#32978 (comment).
It was not important originally, but now that we are productionizing
`repeat_row`, the original error message would become confusing: it
would say that "more than one record produced in subquery", when in fact
there was a negative number of rows.
I didn't add a test, because I wasn't able to find a query where this
error deterministically happens. If I just naively put a
`repeat_row(-1)` inside a subquery, then sometimes this error happens,
but sometimes a `Distinct` gives the negative accumulation error
message.
0 commit comments