-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(flink): edit basic join to test mutating join
- Loading branch information
Showing
3 changed files
with
24 additions
and
11 deletions.
There are no files selected for viewing
8 changes: 0 additions & 8 deletions
8
ibis/backends/flink/tests/snapshots/test_join/test_join/out.sql
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
ibis/backends/flink/tests/snapshots/test_join/test_mutating_join/out.sql
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,21 @@ | ||
WITH t0 AS ( | ||
SELECT t3.* | ||
FROM awards_players t3 | ||
WHERE t3.`lgID` = 'NL' | ||
), | ||
t1 AS ( | ||
SELECT t0.`playerID`, t0.`awardID`, t0.`tie`, t0.`notes` | ||
FROM t0 | ||
), | ||
t2 AS ( | ||
SELECT t3.* | ||
FROM batting t3 | ||
WHERE t3.`yearID` = 2015 | ||
) | ||
SELECT t2.`playerID`, t2.`yearID`, t2.`stint`, t2.`teamID`, t2.`lgID`, t2.`G`, | ||
t2.`AB`, t2.`R`, t2.`H`, t2.`X2B`, t2.`X3B`, t2.`HR`, t2.`RBI`, | ||
t2.`SB`, t2.`CS`, t2.`BB`, t2.`SO`, t2.`IBB`, t2.`HBP`, t2.`SH`, | ||
t2.`SF`, t2.`GIDP`, t1.`awardID`, t1.`tie`, t1.`notes` | ||
FROM t2 | ||
INNER JOIN t1 | ||
ON t2.`playerID` = t1.`playerID` |
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