Open findepi opened 5 days ago
The condition is also required in the SQL specification here (for qualified joins). https://jakewheat.github.io/sql-overview/sql-2016-foundation-grammar.html#join-specification so I think this should be changed / fixed in sqlparser-rs.
Thanks @Dandandan for checking the SQL standard too!
take
Describe the bug
SELECT ... FROM l JOIN r
is not a valid SQL query, theON
condition should not be optionalTo Reproduce
Expected behavior
The query should be rejected, the ON condition be requiered. In fact, omitting it might be typo with dangerous consequences (expensive cross join).
Trino
PostgresSQL
DuckDB
Additional context
No response