-
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(bigquery): ensure that generated names are used when compiling co…
…lumns and allow flexible column names
- Loading branch information
Showing
46 changed files
with
73 additions
and
61 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
2 changes: 1 addition & 1 deletion
2
...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(t0.`month` > 0, t0.`double_col`, NULL), 2)[OFFSET(1)] AS `ApproxMedian_double_col_Greater_month` | ||
SELECT APPROX_QUANTILES(if(t0.`month` > 0, t0.`double_col`, NULL), 2)[OFFSET(1)] AS `ApproxMedian_double_col_ Greater_month_ 0` | ||
FROM functional_alltypes t0 |
2 changes: 1 addition & 1 deletion
2
...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(t0.`month` > 0, t0.`double_col`, NULL)) AS `ApproxCountDistinct_double_col_Greater_month` | ||
SELECT APPROX_COUNT_DISTINCT(if(t0.`month` > 0, t0.`double_col`, NULL)) AS `ApproxCountDistinct_double_col_ Greater_month_ 0` | ||
FROM functional_alltypes t0 |
2 changes: 1 addition & 1 deletion
2
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(t0.`value` AS BYTES) AS `Cast_value_binary` | ||
SELECT CAST(t0.`value` AS BYTES) AS `Cast_value_ binary` | ||
FROM t t0 |
2 changes: 1 addition & 1 deletion
2
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(t0.`bigint_col` > 0, t0.`int_col`, NULL)) AS `BitAnd_int_col_Greater_bigint_col` | ||
SELECT BIT_AND(if(t0.`bigint_col` > 0, t0.`int_col`, NULL)) AS `BitAnd_int_col_ Greater_bigint_col_ 0` | ||
FROM functional_alltypes t0 |
2 changes: 1 addition & 1 deletion
2
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(t0.`bigint_col` > 0, t0.`int_col`, NULL)) AS `BitOr_int_col_Greater_bigint_col` | ||
SELECT BIT_OR(if(t0.`bigint_col` > 0, t0.`int_col`, NULL)) AS `BitOr_int_col_ Greater_bigint_col_ 0` | ||
FROM functional_alltypes t0 |
2 changes: 1 addition & 1 deletion
2
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(t0.`bigint_col` > 0, t0.`int_col`, NULL)) AS `BitXor_int_col_Greater_bigint_col` | ||
SELECT BIT_XOR(if(t0.`bigint_col` > 0, t0.`int_col`, NULL)) AS `BitXor_int_col_ Greater_bigint_col_ 0` | ||
FROM functional_alltypes t0 |
2 changes: 1 addition & 1 deletion
2
...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((t0.`month` > 6) AND (t0.`month` < 10), CAST(t0.`bool_col` AS INT64), NULL)) AS `Sum_bool_col_And_Greater_month_Less_month` | ||
SELECT sum(if((t0.`month` > 6) AND (t0.`month` < 10), CAST(t0.`bool_col` AS INT64), NULL)) AS `Sum_bool_col_ And_Greater_month_ 6_ Less_month_ 10` | ||
FROM functional_alltypes t0 |
2 changes: 1 addition & 1 deletion
2
...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(t0.`month` > 6, CAST(t0.`bool_col` AS INT64), NULL)) AS `Mean_bool_col_Greater_month` | ||
SELECT avg(if(t0.`month` > 6, CAST(t0.`bool_col` AS INT64), NULL)) AS `Mean_bool_col_ Greater_month_ 6` | ||
FROM functional_alltypes t0 |
2 changes: 1 addition & 1 deletion
2
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_cast_float_to_int/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(TRUNC(t0.`double_col`) AS INT64) AS `Cast_double_col_int64` | ||
SELECT CAST(TRUNC(t0.`double_col`) AS INT64) AS `Cast_double_col_ int64` | ||
FROM functional_alltypes t0 |
2 changes: 1 addition & 1 deletion
2
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(t0.`double_col`, t0.`double_col`) AS `Covariance_double_col_double_col` | ||
SELECT COVAR_POP(t0.`double_col`, t0.`double_col`) AS `Covariance_double_col_ double_col` | ||
FROM functional_alltypes t0 |
2 changes: 1 addition & 1 deletion
2
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(t0.`double_col`, t0.`double_col`) AS `Covariance_double_col_double_col` | ||
SELECT COVAR_SAMP(t0.`double_col`, t0.`double_col`) AS `Covariance_double_col_ double_col` | ||
FROM functional_alltypes t0 |
2 changes: 1 addition & 1 deletion
2
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_day_of_week/date/index.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 +1 @@ | ||
SELECT MOD(EXTRACT(DAYOFWEEK FROM DATE '2017-01-01') + 5, 7) AS `DayOfWeekIndex_datetime_date` | ||
SELECT MOD(EXTRACT(DAYOFWEEK FROM DATE '2017-01-01') + 5, 7) AS `DayOfWeekIndex_datetime_date_2017_ 1_ 1` |
2 changes: 1 addition & 1 deletion
2
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_day_of_week/date/name.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 +1 @@ | ||
SELECT INITCAP(CAST(DATE '2017-01-01' AS STRING FORMAT 'DAY')) AS `DayOfWeekName_datetime_date` | ||
SELECT INITCAP(CAST(DATE '2017-01-01' AS STRING FORMAT 'DAY')) AS `DayOfWeekName_datetime_date_2017_ 1_ 1` |
2 changes: 1 addition & 1 deletion
2
.../backends/bigquery/tests/unit/snapshots/test_compiler/test_day_of_week/datetime/index.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 +1 @@ | ||
SELECT MOD(EXTRACT(DAYOFWEEK FROM TIMESTAMP '2017-01-01 04:55:59') + 5, 7) AS `DayOfWeekIndex_datetime_datetime` | ||
SELECT MOD(EXTRACT(DAYOFWEEK FROM TIMESTAMP '2017-01-01 04:55:59') + 5, 7) AS `DayOfWeekIndex_datetime_datetime_2017_ 1_ 1_ 4_ 55_ 59` |
2 changes: 1 addition & 1 deletion
2
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_day_of_week/datetime/name.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 +1 @@ | ||
SELECT INITCAP(CAST(TIMESTAMP '2017-01-01 04:55:59' AS STRING FORMAT 'DAY')) AS `DayOfWeekName_datetime_datetime` | ||
SELECT INITCAP(CAST(TIMESTAMP '2017-01-01 04:55:59' AS STRING FORMAT 'DAY')) AS `DayOfWeekName_datetime_datetime_2017_ 1_ 1_ 4_ 55_ 59` |
2 changes: 1 addition & 1 deletion
2
...ckends/bigquery/tests/unit/snapshots/test_compiler/test_day_of_week/string_date/index.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 +1 @@ | ||
SELECT MOD(EXTRACT(DAYOFWEEK FROM DATE '2017-01-01') + 5, 7) AS `DayOfWeekIndex_datetime_date` | ||
SELECT MOD(EXTRACT(DAYOFWEEK FROM DATE '2017-01-01') + 5, 7) AS `DayOfWeekIndex_datetime_date_2017_ 1_ 1` |
2 changes: 1 addition & 1 deletion
2
...ackends/bigquery/tests/unit/snapshots/test_compiler/test_day_of_week/string_date/name.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 +1 @@ | ||
SELECT INITCAP(CAST(DATE '2017-01-01' AS STRING FORMAT 'DAY')) AS `DayOfWeekName_datetime_date` | ||
SELECT INITCAP(CAST(DATE '2017-01-01' AS STRING FORMAT 'DAY')) AS `DayOfWeekName_datetime_date_2017_ 1_ 1` |
2 changes: 1 addition & 1 deletion
2
...s/bigquery/tests/unit/snapshots/test_compiler/test_day_of_week/string_timestamp/index.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 +1 @@ | ||
SELECT MOD(EXTRACT(DAYOFWEEK FROM TIMESTAMP '2017-01-01 04:55:59') + 5, 7) AS `DayOfWeekIndex_datetime_datetime` | ||
SELECT MOD(EXTRACT(DAYOFWEEK FROM TIMESTAMP '2017-01-01 04:55:59') + 5, 7) AS `DayOfWeekIndex_datetime_datetime_2017_ 1_ 1_ 4_ 55_ 59` |
2 changes: 1 addition & 1 deletion
2
...ds/bigquery/tests/unit/snapshots/test_compiler/test_day_of_week/string_timestamp/name.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 +1 @@ | ||
SELECT INITCAP(CAST(TIMESTAMP '2017-01-01 04:55:59' AS STRING FORMAT 'DAY')) AS `DayOfWeekName_datetime_datetime` | ||
SELECT INITCAP(CAST(TIMESTAMP '2017-01-01 04:55:59' AS STRING FORMAT 'DAY')) AS `DayOfWeekName_datetime_datetime_2017_ 1_ 1_ 4_ 55_ 59` |
2 changes: 1 addition & 1 deletion
2
...backends/bigquery/tests/unit/snapshots/test_compiler/test_day_of_week/timestamp/index.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 +1 @@ | ||
SELECT MOD(EXTRACT(DAYOFWEEK FROM TIMESTAMP '2017-01-01 04:55:59') + 5, 7) AS `DayOfWeekIndex_datetime_datetime` | ||
SELECT MOD(EXTRACT(DAYOFWEEK FROM TIMESTAMP '2017-01-01 04:55:59') + 5, 7) AS `DayOfWeekIndex_datetime_datetime_2017_ 1_ 1_ 4_ 55_ 59` |
2 changes: 1 addition & 1 deletion
2
.../backends/bigquery/tests/unit/snapshots/test_compiler/test_day_of_week/timestamp/name.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 +1 @@ | ||
SELECT INITCAP(CAST(TIMESTAMP '2017-01-01 04:55:59' AS STRING FORMAT 'DAY')) AS `DayOfWeekName_datetime_datetime` | ||
SELECT INITCAP(CAST(TIMESTAMP '2017-01-01 04:55:59' AS STRING FORMAT 'DAY')) AS `DayOfWeekName_datetime_datetime_2017_ 1_ 1_ 4_ 55_ 59` |
2 changes: 1 addition & 1 deletion
2
...nds/bigquery/tests/unit/snapshots/test_compiler/test_day_of_week/timestamp_date/index.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 +1 @@ | ||
SELECT MOD(EXTRACT(DAYOFWEEK FROM DATE '2017-01-01') + 5, 7) AS `DayOfWeekIndex_datetime_date` | ||
SELECT MOD(EXTRACT(DAYOFWEEK FROM DATE '2017-01-01') + 5, 7) AS `DayOfWeekIndex_datetime_date_2017_ 1_ 1` |
2 changes: 1 addition & 1 deletion
2
...ends/bigquery/tests/unit/snapshots/test_compiler/test_day_of_week/timestamp_date/name.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 +1 @@ | ||
SELECT INITCAP(CAST(DATE '2017-01-01' AS STRING FORMAT 'DAY')) AS `DayOfWeekName_datetime_date` | ||
SELECT INITCAP(CAST(DATE '2017-01-01' AS STRING FORMAT 'DAY')) AS `DayOfWeekName_datetime_date_2017_ 1_ 1` |
2 changes: 1 addition & 1 deletion
2
...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(t0.`double_col`, 0)) AS INT64) AS `FloorDivide_double_col` | ||
SELECT CAST(FLOOR(IEEE_DIVIDE(t0.`double_col`, 0)) AS INT64) AS `FloorDivide_double_col_ 0` | ||
FROM functional_alltypes t0 |
2 changes: 1 addition & 1 deletion
2
.../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(t0.`double_col`, 0) AS `Divide_double_col` | ||
SELECT IEEE_DIVIDE(t0.`double_col`, 0) AS `Divide_double_col_ 0` | ||
FROM functional_alltypes t0 |
2 changes: 1 addition & 1 deletion
2
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_hash/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 +1 @@ | ||
SELECT farm_fingerprint(FROM_BASE64('dGVzdCBvZiBoYXNo')) AS `Hash_b_test_of_hash` | ||
SELECT farm_fingerprint(FROM_BASE64('dGVzdCBvZiBoYXNo')) AS `Hash_b'test of hash'` |
2 changes: 1 addition & 1 deletion
2
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_hash/string/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 +1 @@ | ||
SELECT farm_fingerprint('test of hash') AS `Hash_test_of_hash` | ||
SELECT farm_fingerprint('test of hash') AS `Hash_'test of hash'` |
2 changes: 1 addition & 1 deletion
2
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_literal_year/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 +1 @@ | ||
SELECT EXTRACT(year from DATE '2017-01-01') AS `ExtractYear_datetime_date` | ||
SELECT EXTRACT(year from DATE '2017-01-01') AS `ExtractYear_datetime_date_2017_ 1_ 1` |
2 changes: 1 addition & 1 deletion
2
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_literal_year/datetime/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 +1 @@ | ||
SELECT EXTRACT(year from TIMESTAMP '2017-01-01 04:55:59') AS `ExtractYear_datetime_datetime` | ||
SELECT EXTRACT(year from TIMESTAMP '2017-01-01 04:55:59') AS `ExtractYear_datetime_datetime_2017_ 1_ 1_ 4_ 55_ 59` |
2 changes: 1 addition & 1 deletion
2
...ackends/bigquery/tests/unit/snapshots/test_compiler/test_literal_year/string_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 +1 @@ | ||
SELECT EXTRACT(year from DATE '2017-01-01') AS `ExtractYear_datetime_date` | ||
SELECT EXTRACT(year from DATE '2017-01-01') AS `ExtractYear_datetime_date_2017_ 1_ 1` |
2 changes: 1 addition & 1 deletion
2
...ds/bigquery/tests/unit/snapshots/test_compiler/test_literal_year/string_timestamp/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 +1 @@ | ||
SELECT EXTRACT(year from TIMESTAMP '2017-01-01 04:55:59') AS `ExtractYear_datetime_datetime` | ||
SELECT EXTRACT(year from TIMESTAMP '2017-01-01 04:55:59') AS `ExtractYear_datetime_datetime_2017_ 1_ 1_ 4_ 55_ 59` |
2 changes: 1 addition & 1 deletion
2
.../backends/bigquery/tests/unit/snapshots/test_compiler/test_literal_year/timestamp/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 +1 @@ | ||
SELECT EXTRACT(year from TIMESTAMP '2017-01-01 04:55:59') AS `ExtractYear_datetime_datetime` | ||
SELECT EXTRACT(year from TIMESTAMP '2017-01-01 04:55:59') AS `ExtractYear_datetime_datetime_2017_ 1_ 1_ 4_ 55_ 59` |
2 changes: 1 addition & 1 deletion
2
...ends/bigquery/tests/unit/snapshots/test_compiler/test_literal_year/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 +1 @@ | ||
SELECT EXTRACT(year from DATE '2017-01-01') AS `ExtractYear_datetime_date` | ||
SELECT EXTRACT(year from DATE '2017-01-01') AS `ExtractYear_datetime_date_2017_ 1_ 1` |
2 changes: 1 addition & 1 deletion
2
...ackends/bigquery/tests/unit/snapshots/test_compiler/test_to_timestamp_no_timezone/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 PARSE_TIMESTAMP('%F', t0.`date_string_col`) AS `StringToTimestamp_date_string_col_F` | ||
SELECT PARSE_TIMESTAMP('%F', t0.`date_string_col`) AS `StringToTimestamp_date_string_col_ '%F'` | ||
FROM functional_alltypes t0 |
2 changes: 1 addition & 1 deletion
2
ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_to_timestamp_timezone/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 PARSE_TIMESTAMP('%F %Z', CONCAT(t0.`date_string_col`, ' America/New_York')) AS `StringToTimestamp_StringConcat_F_Z` | ||
SELECT PARSE_TIMESTAMP('%F %Z', CONCAT(t0.`date_string_col`, ' America/New_York')) AS `StringToTimestamp_StringConcat_ '%F %Z'` | ||
FROM functional_alltypes 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ SELECT | |
WHERE | ||
t0.`x` > 2 | ||
) AS t1 | ||
) AS `Contains_x_x` | ||
) AS `Contains_x_ x` | ||
FROM t AS 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