forked from ibis-project/ibis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(flink): fine-tune numeric literal translation
- Loading branch information
Showing
6 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
ibis/backends/flink/tests/snapshots/test_translator/test_translate_filter/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
SELECT t0.* | ||
FROM table t0 | ||
WHERE ((t0.`c` > 0) OR (t0.`c` < 0)) AND | ||
WHERE ((t0.`c` > CAST(0 AS TINYINT)) OR (t0.`c` < CAST(0 AS TINYINT))) AND | ||
(t0.`g` IN ('A', 'B')) |
2 changes: 1 addition & 1 deletion
2
ibis/backends/flink/tests/snapshots/test_translator/test_translate_having/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
SELECT t0.`g`, sum(t0.`b`) AS `b_sum` | ||
FROM table t0 | ||
GROUP BY t0.`g` | ||
HAVING count(*) >= 1000 | ||
HAVING count(*) >= CAST(1000 AS SMALLINT) |
2 changes: 1 addition & 1 deletion
2
ibis/backends/flink/tests/snapshots/test_window/test_rows_window/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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
SELECT sum(t0.`f`) OVER (ORDER BY t0.`f` ASC ROWS BETWEEN 1000 PRECEDING AND CURRENT ROW) AS `Sum(f)` | ||
SELECT sum(t0.`f`) OVER (ORDER BY t0.`f` ASC ROWS BETWEEN CAST(1000 AS SMALLINT) PRECEDING AND CURRENT ROW) AS `Sum(f)` | ||
FROM table t0 |
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