-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add APPLY operator support for mssql #5133
Copy link
Copy link
Open
Labels
SQL ServerMicrosoft SQL Server, e.g. mssqlMicrosoft SQL Server, e.g. mssqlcode review in progresscode has been provided that's in review as PR and/or gerritcode has been provided that's in review as PR and/or gerritoraclepatch providedissue has the correct patch present in the comments. needs test + mergeissue has the correct patch present in the comments. needs test + mergesqluse casenot really a feature or a bug; can be support for new DB features or user use cases not anticipatednot really a feature or a bug; can be support for new DB features or user use cases not anticipated
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
SQL ServerMicrosoft SQL Server, e.g. mssqlMicrosoft SQL Server, e.g. mssqlcode review in progresscode has been provided that's in review as PR and/or gerritcode has been provided that's in review as PR and/or gerritoraclepatch providedissue has the correct patch present in the comments. needs test + mergeissue has the correct patch present in the comments. needs test + mergesqluse casenot really a feature or a bug; can be support for new DB features or user use cases not anticipatednot really a feature or a bug; can be support for new DB features or user use cases not anticipated
The APPLY operator in mssql is somewhat akin to a JOIN LATERAL in postgresql and allows referencing columns from the left side of the FROM clause on the right side of the operand.
The goal is that
would produce something close to
It is maybe noteworthy that Oracle has also implemented
{ CROSS | OUTER } APPLYand so maybe this feature should live in the generic SQL namespaces, instead of the mssql dialect.