-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(impala): remove broken alias elision
- Loading branch information
Showing
264 changed files
with
874 additions
and
922 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
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
4 changes: 2 additions & 2 deletions
4
...ends/bigquery/tests/unit/snapshots/test_compiler/test_approx/filter-approx_median/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 APPROX_QUANTILES(if(`month` > 0, `double_col`, NULL), 2)[OFFSET(1)] AS `tmp` | ||
FROM functional_alltypes | ||
SELECT APPROX_QUANTILES(if(t0.`month` > 0, t0.`double_col`, NULL), 2)[OFFSET(1)] AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
...nds/bigquery/tests/unit/snapshots/test_compiler/test_approx/filter-approx_nunique/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 APPROX_COUNT_DISTINCT(if(`month` > 0, `double_col`, NULL)) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT APPROX_COUNT_DISTINCT(if(t0.`month` > 0, t0.`double_col`, NULL)) AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
...s/bigquery/tests/unit/snapshots/test_compiler/test_approx/no_filter-approx_median/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 APPROX_QUANTILES(`double_col`, 2)[OFFSET(1)] AS `tmp` | ||
FROM functional_alltypes | ||
SELECT APPROX_QUANTILES(t0.`double_col`, 2)[OFFSET(1)] AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
.../bigquery/tests/unit/snapshots/test_compiler/test_approx/no_filter-approx_nunique/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 APPROX_COUNT_DISTINCT(`double_col`) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT APPROX_COUNT_DISTINCT(t0.`double_col`) AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_binary/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 CAST(`value` AS BYTES) AS `tmp` | ||
FROM t | ||
SELECT CAST(t0.`value` AS BYTES) AS `tmp` | ||
FROM t t0 |
4 changes: 2 additions & 2 deletions
4
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_bit/filter-bit_and/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 BIT_AND(if(`bigint_col` > 0, `int_col`, NULL)) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT BIT_AND(if(t0.`bigint_col` > 0, t0.`int_col`, NULL)) AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_bit/filter-bit_or/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 BIT_OR(if(`bigint_col` > 0, `int_col`, NULL)) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT BIT_OR(if(t0.`bigint_col` > 0, t0.`int_col`, NULL)) AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_bit/filter-bit_xor/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 BIT_XOR(if(`bigint_col` > 0, `int_col`, NULL)) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT BIT_XOR(if(t0.`bigint_col` > 0, t0.`int_col`, NULL)) AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_bit/no_filter-bit_and/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 BIT_AND(`int_col`) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT BIT_AND(t0.`int_col`) AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_bit/no_filter-bit_or/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 BIT_OR(`int_col`) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT BIT_OR(t0.`int_col`) AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_bit/no_filter-bit_xor/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 BIT_XOR(`int_col`) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT BIT_XOR(t0.`int_col`) AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_bool_reducers/mean/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 avg(CAST(`bool_col` AS INT64)) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT avg(CAST(t0.`bool_col` AS INT64)) AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_bool_reducers/sum/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(CAST(`bool_col` AS INT64)) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT sum(CAST(t0.`bool_col` AS INT64)) AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
...ackends/bigquery/tests/unit/snapshots/test_compiler/test_bool_reducers_where_conj/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(if((`month` > 6) AND (`month` < 10), CAST(`bool_col` AS INT64), NULL)) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT sum(if((t0.`month` > 6) AND (t0.`month` < 10), CAST(t0.`bool_col` AS INT64), NULL)) AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
...kends/bigquery/tests/unit/snapshots/test_compiler/test_bool_reducers_where_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,2 +1,2 @@ | ||
SELECT avg(if(`month` > 6, CAST(`bool_col` AS INT64), NULL)) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT avg(if(t0.`month` > 6, CAST(t0.`bool_col` AS INT64), NULL)) AS `tmp` | ||
FROM functional_alltypes t0 |
6 changes: 3 additions & 3 deletions
6
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_bucket/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,7 +1,7 @@ | ||
SELECT | ||
CASE | ||
WHEN (0 <= `value`) AND (`value` < 1) THEN 0 | ||
WHEN (1 <= `value`) AND (`value` <= 3) THEN 1 | ||
WHEN (0 <= t0.`value`) AND (t0.`value` < 1) THEN 0 | ||
WHEN (1 <= t0.`value`) AND (t0.`value` <= 3) THEN 1 | ||
ELSE CAST(NULL AS INT64) | ||
END AS `tmp` | ||
FROM t | ||
FROM t t0 |
4 changes: 2 additions & 2 deletions
4
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_compile_toplevel/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(`foo`) AS `tmp` | ||
FROM t0 | ||
SELECT sum(t0.`foo`) AS `tmp` | ||
FROM t0 t0 |
4 changes: 2 additions & 2 deletions
4
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_cov/pop/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 COVAR_POP(`double_col`, `double_col`) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT COVAR_POP(t0.`double_col`, t0.`double_col`) AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_cov/sample/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 COVAR_SAMP(`double_col`, `double_col`) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT COVAR_SAMP(t0.`double_col`, t0.`double_col`) AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
...backends/bigquery/tests/unit/snapshots/test_compiler/test_divide_by_zero/floordiv/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 CAST(FLOOR(IEEE_DIVIDE(`double_col`, 0)) AS INT64) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT CAST(FLOOR(IEEE_DIVIDE(t0.`double_col`, 0)) AS INT64) AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
.../backends/bigquery/tests/unit/snapshots/test_compiler/test_divide_by_zero/truediv/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 IEEE_DIVIDE(`double_col`, 0) AS `tmp` | ||
FROM functional_alltypes | ||
SELECT IEEE_DIVIDE(t0.`double_col`, 0) AS `tmp` | ||
FROM functional_alltypes t0 |
4 changes: 2 additions & 2 deletions
4
...uery/tests/unit/snapshots/test_compiler/test_extract_temporal_from_timestamp/date/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 DATE(`ts`) AS `tmp` | ||
FROM t | ||
SELECT DATE(t0.`ts`) AS `tmp` | ||
FROM t t0 |
4 changes: 2 additions & 2 deletions
4
...uery/tests/unit/snapshots/test_compiler/test_extract_temporal_from_timestamp/time/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 TIME(`ts`) AS `tmp` | ||
FROM t | ||
SELECT TIME(t0.`ts`) AS `tmp` | ||
FROM t t0 |
4 changes: 2 additions & 2 deletions
4
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_geospatial_azimuth/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 ST_AZIMUTH(`p0`, `p1`) AS `tmp` | ||
FROM t | ||
SELECT ST_AZIMUTH(t0.`p0`, t0.`p1`) AS `tmp` | ||
FROM t t0 |
4 changes: 2 additions & 2 deletions
4
...kends/bigquery/tests/unit/snapshots/test_compiler/test_geospatial_binary/contains/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 ST_CONTAINS(`geog0`, `geog1`) AS `tmp` | ||
FROM t | ||
SELECT ST_CONTAINS(t0.`geog0`, t0.`geog1`) AS `tmp` | ||
FROM t t0 |
Oops, something went wrong.