-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YQL-19192 Fix a bug in in-mem cross-join
commit_hash:053aa7fb2386f44720aa5fa726f3014791ea9b65
- Loading branch information
avevad
committed
Jan 16, 2025
1 parent
52092f0
commit 96a6bd3
Showing
5 changed files
with
62 additions
and
2 deletions.
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
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
18 changes: 18 additions & 0 deletions
18
...essentials/tests/sql/sql2yql/canondata/test_sql_format.test_join-yql-19192_/formatted.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,18 @@ | ||
$samples1 = AsList(<|sampl: 1|>, <|sampl: 2|>); | ||
$sampling_cumulative_prob1 = AsList(<|color: 'blue', cum_prob: 3|>); | ||
|
||
$cumulative_bounds = ( | ||
SELECT | ||
LAG(cum_prob) OVER () AS lower_cum_bound | ||
FROM | ||
AS_TABLE($sampling_cumulative_prob1) | ||
); | ||
|
||
SELECT | ||
s.sampl, | ||
cb.lower_cum_bound | ||
FROM | ||
AS_TABLE($samples1) AS s | ||
CROSS JOIN | ||
$cumulative_bounds AS cb | ||
; |
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,12 @@ | ||
$samples1 = AsList(<|sampl: 1|>, <|sampl: 2|>); | ||
$sampling_cumulative_prob1 = AsList(<|color: "blue", cum_prob: 3|>); | ||
|
||
$cumulative_bounds = SELECT | ||
LAG(cum_prob) OVER () AS lower_cum_bound | ||
FROM AS_TABLE($sampling_cumulative_prob1); | ||
|
||
SELECT | ||
s.sampl, | ||
cb.lower_cum_bound | ||
FROM AS_TABLE($samples1) AS s | ||
CROSS JOIN $cumulative_bounds AS cb; |