This fixes the unparser to explicitly treat inner JOIN with no conditions as a CROSS JOIN, which works for all database systems. DataFusion treats inner joins with no conditions as a CROSS JOIN - but not all database systems the unparser targets support that.
What changes are included in this PR?
When generating the SQL AST for an Inner join with no conditions, return a CROSS JOIN operator instead.
Which issue does this PR close?
Closes #13459
Rationale for this change
This fixes the unparser to explicitly treat inner
JOIN
with no conditions as aCROSS JOIN
, which works for all database systems. DataFusion treats inner joins with no conditions as aCROSS JOIN
- but not all database systems the unparser targets support that.What changes are included in this PR?
When generating the SQL AST for an Inner join with no conditions, return a CROSS JOIN operator instead.
Are these changes tested?
Yes
Are there any user-facing changes?
No API changes.