-
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(clickhouse): do not always prefix the table name with database, b…
…ecause temp tables cannot be assigned a database
- Loading branch information
Showing
22 changed files
with
32 additions
and
48 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
2 changes: 1 addition & 1 deletion
2
ibis/backends/clickhouse/tests/snapshots/test_select/test_isin_notin_in_select/out1.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 | ||
* | ||
FROM ibis_testing.functional_alltypes AS t0 | ||
FROM functional_alltypes AS t0 | ||
WHERE | ||
t0.string_col IN ('foo', 'bar') |
2 changes: 1 addition & 1 deletion
2
ibis/backends/clickhouse/tests/snapshots/test_select/test_isin_notin_in_select/out2.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 | ||
* | ||
FROM ibis_testing.functional_alltypes AS t0 | ||
FROM functional_alltypes AS t0 | ||
WHERE | ||
NOT t0.string_col IN ('foo', 'bar') |
2 changes: 1 addition & 1 deletion
2
...ends/clickhouse/tests/snapshots/test_select/test_isnull_case_expr_rewrite_failure/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 | ||
sum(CASE WHEN isNull(t0.string_col) THEN 1 ELSE 0 END) AS "Sum(Where(IsNull(string_col), 1, 0))" | ||
FROM ibis_testing.functional_alltypes AS t0 | ||
FROM functional_alltypes AS t0 |
4 changes: 2 additions & 2 deletions
4
ibis/backends/clickhouse/tests/snapshots/test_select/test_join_self_reference/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 | ||
t0.* | ||
FROM ibis_testing.functional_alltypes AS t0 | ||
INNER JOIN ibis_testing.functional_alltypes AS t1 | ||
FROM functional_alltypes AS t0 | ||
INNER JOIN functional_alltypes AS t1 | ||
ON t0.id = t1.id |
2 changes: 1 addition & 1 deletion
2
...ds/clickhouse/tests/snapshots/test_select/test_physical_table_reference_translate/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 | ||
* | ||
FROM ibis_testing.functional_alltypes | ||
FROM functional_alltypes |
2 changes: 1 addition & 1 deletion
2
ibis/backends/clickhouse/tests/snapshots/test_select/test_self_reference_simple/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 | ||
* | ||
FROM ibis_testing.functional_alltypes AS t0 | ||
FROM functional_alltypes AS t0 |
4 changes: 2 additions & 2 deletions
4
...use/tests/snapshots/test_select/test_simple_joins/playerID-awardID-any_inner_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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
SELECT | ||
t0.* | ||
FROM ibis_testing.batting AS t0 | ||
ANY JOIN ibis_testing.awards_players AS t1 | ||
FROM batting AS t0 | ||
ANY JOIN awards_players AS t1 | ||
ON t0.playerID = t1.awardID |
4 changes: 2 additions & 2 deletions
4
...ouse/tests/snapshots/test_select/test_simple_joins/playerID-awardID-any_left_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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
SELECT | ||
t0.* | ||
FROM ibis_testing.batting AS t0 | ||
LEFT ANY JOIN ibis_testing.awards_players AS t1 | ||
FROM batting AS t0 | ||
LEFT ANY JOIN awards_players AS t1 | ||
ON t0.playerID = t1.awardID |
4 changes: 2 additions & 2 deletions
4
...ckhouse/tests/snapshots/test_select/test_simple_joins/playerID-awardID-inner_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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
SELECT | ||
t0.* | ||
FROM ibis_testing.batting AS t0 | ||
INNER JOIN ibis_testing.awards_players AS t1 | ||
FROM batting AS t0 | ||
INNER JOIN awards_players AS t1 | ||
ON t0.playerID = t1.awardID |
4 changes: 2 additions & 2 deletions
4
...ickhouse/tests/snapshots/test_select/test_simple_joins/playerID-awardID-left_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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
SELECT | ||
t0.* | ||
FROM ibis_testing.batting AS t0 | ||
LEFT OUTER JOIN ibis_testing.awards_players AS t1 | ||
FROM batting AS t0 | ||
LEFT OUTER JOIN awards_players AS t1 | ||
ON t0.playerID = t1.awardID |
4 changes: 2 additions & 2 deletions
4
...se/tests/snapshots/test_select/test_simple_joins/playerID-playerID-any_inner_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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
SELECT | ||
t0.* | ||
FROM ibis_testing.batting AS t0 | ||
ANY JOIN ibis_testing.awards_players AS t1 | ||
FROM batting AS t0 | ||
ANY JOIN awards_players AS t1 | ||
ON t0.playerID = t1.playerID |
4 changes: 2 additions & 2 deletions
4
...use/tests/snapshots/test_select/test_simple_joins/playerID-playerID-any_left_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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
SELECT | ||
t0.* | ||
FROM ibis_testing.batting AS t0 | ||
LEFT ANY JOIN ibis_testing.awards_players AS t1 | ||
FROM batting AS t0 | ||
LEFT ANY JOIN awards_players AS t1 | ||
ON t0.playerID = t1.playerID |
4 changes: 2 additions & 2 deletions
4
...khouse/tests/snapshots/test_select/test_simple_joins/playerID-playerID-inner_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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
SELECT | ||
t0.* | ||
FROM ibis_testing.batting AS t0 | ||
INNER JOIN ibis_testing.awards_players AS t1 | ||
FROM batting AS t0 | ||
INNER JOIN awards_players AS t1 | ||
ON t0.playerID = t1.playerID |
4 changes: 2 additions & 2 deletions
4
...ckhouse/tests/snapshots/test_select/test_simple_joins/playerID-playerID-left_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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
SELECT | ||
t0.* | ||
FROM ibis_testing.batting AS t0 | ||
LEFT OUTER JOIN ibis_testing.awards_players AS t1 | ||
FROM batting AS t0 | ||
LEFT OUTER JOIN awards_players AS t1 | ||
ON t0.playerID = t1.playerID |
2 changes: 1 addition & 1 deletion
2
ibis/backends/clickhouse/tests/snapshots/test_select/test_simple_scalar_aggregates/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 | ||
sum(t0.float_col) AS "Sum(float_col)" | ||
FROM ibis_testing.functional_alltypes AS t0 | ||
FROM functional_alltypes AS t0 | ||
WHERE | ||
t0.int_col > 0 |
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
2 changes: 1 addition & 1 deletion
2
ibis/backends/clickhouse/tests/snapshots/test_select/test_where_simple_comparisons/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
ibis/backends/clickhouse/tests/snapshots/test_select/test_where_with_between/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 | ||
* | ||
FROM ibis_testing.functional_alltypes AS t0 | ||
FROM functional_alltypes AS t0 | ||
WHERE | ||
t0.int_col > 0 AND t0.float_col BETWEEN 0 AND 1 |
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