Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Spark3 join types * black format and linting * replace get_eventual_alias with method from ansi
- Loading branch information
Showing
3 changed files
with
234 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SELECT * FROM employee SEMI JOIN department ON employee.deptno = department.deptno; | ||
SELECT * FROM employee ANTI JOIN department ON employee.deptno = department.deptno; | ||
SELECT * FROM employee LEFT SEMI JOIN department ON employee.deptno = department.deptno; | ||
SELECT * FROM employee LEFT ANTI JOIN department ON employee.deptno = department.deptno; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
# YML test files are auto-generated from SQL files and should not be edited by | ||
# hand. To help enforce this, the "hash" field in the file must match a hash | ||
# computed by SQLFluff when running the tests. Please run | ||
# `python test/generate_parse_fixture_yml.py` to generate them after adding or | ||
# altering SQL files. | ||
_hash: 083b7cabc2d0da7873019cf780c8a8e0046fd187223d5da951159dbaf4d03ca4 | ||
file: | ||
- base: | ||
select_statement: | ||
select_clause: | ||
keyword: SELECT | ||
select_clause_element: | ||
wildcard_expression: | ||
wildcard_identifier: | ||
star: '*' | ||
from_clause: | ||
keyword: FROM | ||
from_expression: | ||
from_expression_element: | ||
table_expression: | ||
table_reference: | ||
identifier: employee | ||
alias_expression: | ||
identifier: SEMI | ||
join_clause: | ||
keyword: JOIN | ||
from_expression_element: | ||
table_expression: | ||
table_reference: | ||
identifier: department | ||
join_on_condition: | ||
keyword: 'ON' | ||
expression: | ||
- column_reference: | ||
- identifier: employee | ||
- dot: . | ||
- identifier: deptno | ||
- comparison_operator: '=' | ||
- column_reference: | ||
- identifier: department | ||
- dot: . | ||
- identifier: deptno | ||
- statement_terminator: ; | ||
- base: | ||
select_statement: | ||
select_clause: | ||
keyword: SELECT | ||
select_clause_element: | ||
wildcard_expression: | ||
wildcard_identifier: | ||
star: '*' | ||
from_clause: | ||
keyword: FROM | ||
from_expression: | ||
from_expression_element: | ||
table_expression: | ||
table_reference: | ||
identifier: employee | ||
alias_expression: | ||
identifier: ANTI | ||
join_clause: | ||
keyword: JOIN | ||
from_expression_element: | ||
table_expression: | ||
table_reference: | ||
identifier: department | ||
join_on_condition: | ||
keyword: 'ON' | ||
expression: | ||
- column_reference: | ||
- identifier: employee | ||
- dot: . | ||
- identifier: deptno | ||
- comparison_operator: '=' | ||
- column_reference: | ||
- identifier: department | ||
- dot: . | ||
- identifier: deptno | ||
- statement_terminator: ; | ||
- base: | ||
select_statement: | ||
select_clause: | ||
keyword: SELECT | ||
select_clause_element: | ||
wildcard_expression: | ||
wildcard_identifier: | ||
star: '*' | ||
from_clause: | ||
keyword: FROM | ||
from_expression: | ||
from_expression_element: | ||
table_expression: | ||
table_reference: | ||
identifier: employee | ||
join_clause: | ||
- keyword: LEFT | ||
- keyword: SEMI | ||
- keyword: JOIN | ||
- from_expression_element: | ||
table_expression: | ||
table_reference: | ||
identifier: department | ||
- join_on_condition: | ||
keyword: 'ON' | ||
expression: | ||
- column_reference: | ||
- identifier: employee | ||
- dot: . | ||
- identifier: deptno | ||
- comparison_operator: '=' | ||
- column_reference: | ||
- identifier: department | ||
- dot: . | ||
- identifier: deptno | ||
- statement_terminator: ; | ||
- base: | ||
select_statement: | ||
select_clause: | ||
keyword: SELECT | ||
select_clause_element: | ||
wildcard_expression: | ||
wildcard_identifier: | ||
star: '*' | ||
from_clause: | ||
keyword: FROM | ||
from_expression: | ||
from_expression_element: | ||
table_expression: | ||
table_reference: | ||
identifier: employee | ||
join_clause: | ||
- keyword: LEFT | ||
- keyword: ANTI | ||
- keyword: JOIN | ||
- from_expression_element: | ||
table_expression: | ||
table_reference: | ||
identifier: department | ||
- join_on_condition: | ||
keyword: 'ON' | ||
expression: | ||
- column_reference: | ||
- identifier: employee | ||
- dot: . | ||
- identifier: deptno | ||
- comparison_operator: '=' | ||
- column_reference: | ||
- identifier: department | ||
- dot: . | ||
- identifier: deptno | ||
- statement_terminator: ; |