-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support CROSS JOIN and CROSS JOIN LATERAL #1112
Comments
Doesn't |
In the example I shared with the |
How about |
But I guess we should add cross join and cross join lateral to Kysely. |
Nice suggestion! This one does have the same query plan and performance as cross join. |
Probably no because on MS SQL Server 2016 I get this error when I try to run It works fine though if I replace Looks like |
MS SQL's cross join does not have an on clause. This PR addresses on-less joins as a solution for mssql apply statements #1074 |
Kysely supports
LEFT JOIN LATERAL
andINNER JOIN LATERAL
, but doesn't support lateral subqueries of the syntaxSELECT * FROM a, LATERAL ( ) l
, or the equivalentSELECT * FROM a CROSS JOIN LATERAL ( ) l
. #140 discussed the reference of multiple tables inselectFrom
as an alternative to cross joins, but this doesn't work for subqueries as far as I can tell.This is the kind of query I'd like to use this feature for:
The text was updated successfully, but these errors were encountered: