-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(flink): correct the filtered count translation
- Loading branch information
Showing
6 changed files
with
12 additions
and
6 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
2 changes: 1 addition & 1 deletion
2
...ackends/flink/tests/snapshots/test_translator/test_translate_complex_filtered_agg/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
2 changes: 1 addition & 1 deletion
2
.../flink/tests/snapshots/test_translator/test_translate_complex_groupby_aggregation/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,5 +1,5 @@ | ||
SELECT EXTRACT(year from t0.`i`) AS `year`, | ||
EXTRACT(month from t0.`i`) AS `month`, count(*) AS `total`, | ||
EXTRACT(month from t0.`i`) AS `month`, COUNT(*) AS `total`, | ||
count(DISTINCT t0.`b`) AS `b_unique` | ||
FROM table t0 | ||
GROUP BY EXTRACT(year from t0.`i`), EXTRACT(month from t0.`i`) |
2 changes: 1 addition & 1 deletion
2
ibis/backends/flink/tests/snapshots/test_translator/test_translate_count_star/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,3 +1,3 @@ | ||
SELECT t0.`i`, count(*) AS `CountStar(table)` | ||
SELECT t0.`i`, COUNT(*) AS `CountStar(table)` | ||
FROM table t0 | ||
GROUP BY t0.`i` |
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(*) >= CAST(1000 AS SMALLINT) | ||
HAVING COUNT(*) >= CAST(1000 AS SMALLINT) |
2 changes: 1 addition & 1 deletion
2
ibis/backends/flink/tests/snapshots/test_translator/test_translate_value_counts/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