datafusion-sqlparse/tests
Nickolay Ponomarev 536fa6e428 Support AS table aliases (6/8)
A "table factor" (name borrowed from the ANSI SQL grammar) is a table
name or a derived table (subquery), followed by an optional `AS` and an
optional alias. (The alias is *not* optional for subqueries, but we
don't enforce that.) It can appear in the FROM/JOIN part of the query.

This commit:
- introduces ASTNode::TableFactor
- changes the parser to populate SQLSelect::relation and Join::relation
  with ASTNode::TableFactor instead of the table name
- changes the parser to only accept subqueries or identifiers, not
  arbitrary expressions in the "table factor" context
- always parses the table name as SQLCompoundIdentifier (whether or not
  it was actually compound).
2019-01-31 03:57:17 +03:00
..
sqlparser_ansi.rs cargo fmt, fix compiler warnings 2018-12-16 13:57:01 -07:00
sqlparser_generic.rs Support AS table aliases (6/8) 2019-01-31 03:57:17 +03:00
sqlparser_postgres.rs Further simplify parse_compound_identifier (5/8) 2019-01-31 03:57:17 +03:00