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
37101: sql: add errorIfRows node r=yuzefovich a=yuzefovich
Add errorIfRows node that returns an error if it receives a row
from its input. It is needed for foreign keys checks implementation
with joins.
Fixes: #37053.
I'm not sure whether some of these additions are necessary or if something is missing. Also, I'm not sure whether it deserves a unit test.
Release note: None
37130: sql: fix checking for presence of window functions in some edge cases r=yuzefovich a=yuzefovich
Previously, when a window function was a part of another expression
(say BinaryExpr) instead of being used directly within PARTITION BY
and ORDER BY clauses of another window function, we would incorrectly
not reject such a query and would actually crash while trying to
execute it.
Release note: None
Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
The
errorIfRows
planNode should return an error if it sees any input rows at all. This helps enable optimizer-driven foreign key checks.The text was updated successfully, but these errors were encountered: