On Sat, 21 Nov 2026 at 02:42, Tender Wang <[email protected]> wrote:
>
> I've cc'd Dean since this issue dates back to the introduction of WHEN
> NOT MATCHED BY SOURCE.
> Dean, could you take a look at the namespace handling in v2 when you
> have a chance?

I agree that it's wrong for NOT MATCHED BY SOURCE actions to allow
access to source columns under an unaliased join. That was certainly
an oversight. It was intended to be disallowed, for consistency with
SQL-standard NOT MATCHED [BY TARGET] actions.

OTOH, it also seems pretty harmless. Fixing it risks breaking existing
queries that currently work (the Vars just return NULL, and the result
is arguably correct). So the fix would need to be flagged in the
release notes as a breaking change.

Perhaps we should just fix it in master?

Regards,
Dean


Reply via email to