mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-11-01 07:34:18 +00:00
This commit adds support for derived tables (i.e., subqueries) that
incorporate set operations, like:
SELECT * FROM (((SELECT 1) UNION (SELECT 2)) t1 AS NATURAL JOIN t2)
This introduces a bit of complexity around determining whether a left
paren starts a subquery, starts a nested join, or belongs to an
already-started subquery. The details are explained in a comment within
the patch.
|
||
|---|---|---|
| .. | ||
| sqlparser_common.rs | ||
| sqlparser_mssql.rs | ||
| sqlparser_postgres.rs | ||