-
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.
- Loading branch information
Showing
40 changed files
with
40 additions
and
40 deletions.
There are no files selected for viewing
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,3 +1,3 @@ | ||
SELECT | ||
parse_timestamp('%F %Z', CONCAT(`t0`.`date_string_col`, ' America/New_York'), 'UTC') AS `StringToTimestamp_StringConcat_'%F %Z'` | ||
parse_timestamp('%F %Z', CONCAT(`t0`.`date_string_col`, ' America/New_York'), 'UTC') AS `StringToTimestamp_StringConcat_date_string_col_' America_New_York'_'%F %Z'` | ||
FROM `functional_alltypes` AS `t0` |
2 changes: 1 addition & 1 deletion
2
ibis/backends/clickhouse/tests/snapshots/test_functions/test_greatest_least/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,3 +1,3 @@ | ||
SELECT | ||
GREATEST("t0"."int_col", 10) AS "Greatest()" | ||
GREATEST("t0"."int_col", 10) AS "Greatest((int_col, 10))" | ||
FROM "functional_alltypes" AS "t0" |
2 changes: 1 addition & 1 deletion
2
ibis/backends/clickhouse/tests/snapshots/test_functions/test_greatest_least/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,3 +1,3 @@ | ||
SELECT | ||
GREATEST("t0"."int_col", "t0"."bigint_col") AS "Greatest()" | ||
GREATEST("t0"."int_col", "t0"."bigint_col") AS "Greatest((int_col, bigint_col))" | ||
FROM "functional_alltypes" AS "t0" |
2 changes: 1 addition & 1 deletion
2
ibis/backends/clickhouse/tests/snapshots/test_functions/test_greatest_least/out3.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 | ||
LEAST("t0"."int_col", 10) AS "Least()" | ||
LEAST("t0"."int_col", 10) AS "Least((int_col, 10))" | ||
FROM "functional_alltypes" AS "t0" |
2 changes: 1 addition & 1 deletion
2
ibis/backends/clickhouse/tests/snapshots/test_functions/test_greatest_least/out4.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 | ||
LEAST("t0"."int_col", "t0"."bigint_col") AS "Least()" | ||
LEAST("t0"."int_col", "t0"."bigint_col") AS "Least((int_col, bigint_col))" | ||
FROM "functional_alltypes" AS "t0" |
2 changes: 1 addition & 1 deletion
2
...backends/clickhouse/tests/snapshots/test_functions/test_string_column_find_in_set/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 | ||
indexOf(['a','b','c'], "t0"."string_col") - 1 AS "FindInSet(string_col)" | ||
indexOf(['a','b','c'], "t0"."string_col") - 1 AS "FindInSet(string_col, ('a', 'b', 'c'))" | ||
FROM "functional_alltypes" 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
2 changes: 1 addition & 1 deletion
2
ibis/backends/clickhouse/tests/snapshots/test_operators/test_simple_case/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 | ||
CASE "t0"."string_col" WHEN 'foo' THEN 'bar' WHEN 'baz' THEN 'qux' ELSE 'default' END AS "SimpleCase(string_col, 'default')" | ||
CASE "t0"."string_col" WHEN 'foo' THEN 'bar' WHEN 'baz' THEN 'qux' ELSE 'default' END AS "SimpleCase(string_col, ('foo', 'baz'), ('bar', 'qux'), 'default')" | ||
FROM "functional_alltypes" 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,5 @@ SELECT | |
) | ||
THEN 2 | ||
ELSE CAST(NULL AS TINYINT) | ||
END AS `Bucket(f)` | ||
END AS `Bucket(f, ())` | ||
FROM `alltypes` 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,5 @@ SELECT | |
) | ||
THEN 2 | ||
ELSE CAST(NULL AS TINYINT) | ||
END AS `Bucket(f)` | ||
END AS `Bucket(f, ())` | ||
FROM `alltypes` 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
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 |
---|---|---|
|
@@ -19,5 +19,5 @@ SELECT | |
) | ||
THEN 2 | ||
ELSE CAST(NULL AS TINYINT) | ||
END AS `Bucket(f)` | ||
END AS `Bucket(f, ())` | ||
FROM `alltypes` 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,5 @@ SELECT | |
) | ||
THEN 3 | ||
ELSE CAST(NULL AS TINYINT) | ||
END AS `Bucket(f)` | ||
END AS `Bucket(f, ())` | ||
FROM `alltypes` 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
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 |
---|---|---|
|
@@ -19,5 +19,5 @@ SELECT | |
) | ||
THEN 2 | ||
ELSE CAST(NULL AS TINYINT) | ||
END AS `Bucket(f)` | ||
END AS `Bucket(f, ())` | ||
FROM `alltypes` 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
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 |
---|---|---|
|
@@ -21,5 +21,5 @@ SELECT | |
) | ||
THEN 3 | ||
ELSE CAST(NULL AS TINYINT) | ||
END AS `Bucket(f)` | ||
END AS `Bucket(f, ())` | ||
FROM `alltypes` 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
2 changes: 1 addition & 1 deletion
2
...apshots/test_case_exprs/test_decimal_fill_null_cast_arg/fill_null_l_extendedprice/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 | ||
COALESCE(`t0`.`l_extendedprice`, 0) AS `Coalesce()` | ||
COALESCE(`t0`.`l_extendedprice`, 0) AS `Coalesce((l_extendedprice, 0))` | ||
FROM `tpch_lineitem` AS `t0` |
2 changes: 1 addition & 1 deletion
2
.../test_case_exprs/test_decimal_fill_null_cast_arg/fill_null_l_extendedprice_double/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 | ||
COALESCE(`t0`.`l_extendedprice`, 0.0) AS `Coalesce()` | ||
COALESCE(`t0`.`l_extendedprice`, 0.0) AS `Coalesce((l_extendedprice, 0.0))` | ||
FROM `tpch_lineitem` AS `t0` |
2 changes: 1 addition & 1 deletion
2
...ts/snapshots/test_case_exprs/test_decimal_fill_null_cast_arg/fill_null_l_quantity/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 | ||
COALESCE(`t0`.`l_quantity`, 0) AS `Coalesce()` | ||
COALESCE(`t0`.`l_quantity`, 0) AS `Coalesce((l_quantity, 0))` | ||
FROM `tpch_lineitem` 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
2 changes: 1 addition & 1 deletion
2
ibis/backends/impala/tests/snapshots/test_case_exprs/test_simple_case/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 | ||
CASE `t0`.`g` WHEN 'foo' THEN 'bar' WHEN 'baz' THEN 'qux' ELSE 'default' END AS `SimpleCase(g, 'default')` | ||
CASE `t0`.`g` WHEN 'foo' THEN 'bar' WHEN 'baz' THEN 'qux' ELSE 'default' END AS `SimpleCase(g, ('foo', 'baz'), ('bar', 'qux'), 'default')` | ||
FROM `alltypes` AS `t0` |
2 changes: 1 addition & 1 deletion
2
...sts/snapshots/test_coalesce_greater_least/test_varargs_functions/coalesce_columns/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 | ||
COALESCE(`t0`.`int_col`, `t0`.`bigint_col`) AS `Coalesce()` | ||
COALESCE(`t0`.`int_col`, `t0`.`bigint_col`) AS `Coalesce((int_col, bigint_col))` | ||
FROM `functional_alltypes` AS `t0` |
2 changes: 1 addition & 1 deletion
2
...ests/snapshots/test_coalesce_greater_least/test_varargs_functions/coalesce_scalar/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 | ||
COALESCE(`t0`.`string_col`, 'foo') AS `Coalesce()` | ||
COALESCE(`t0`.`string_col`, 'foo') AS `Coalesce((string_col, 'foo'))` | ||
FROM `functional_alltypes` AS `t0` |
2 changes: 1 addition & 1 deletion
2
...sts/snapshots/test_coalesce_greater_least/test_varargs_functions/greatest_columns/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 | ||
GREATEST(`t0`.`int_col`, `t0`.`bigint_col`) AS `Greatest()` | ||
GREATEST(`t0`.`int_col`, `t0`.`bigint_col`) AS `Greatest((int_col, bigint_col))` | ||
FROM `functional_alltypes` AS `t0` |
2 changes: 1 addition & 1 deletion
2
...ests/snapshots/test_coalesce_greater_least/test_varargs_functions/greatest_scalar/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 | ||
GREATEST(`t0`.`string_col`, 'foo') AS `Greatest()` | ||
GREATEST(`t0`.`string_col`, 'foo') AS `Greatest((string_col, 'foo'))` | ||
FROM `functional_alltypes` AS `t0` |
2 changes: 1 addition & 1 deletion
2
.../tests/snapshots/test_coalesce_greater_least/test_varargs_functions/least_columns/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 | ||
LEAST(`t0`.`int_col`, `t0`.`bigint_col`) AS `Least()` | ||
LEAST(`t0`.`int_col`, `t0`.`bigint_col`) AS `Least((int_col, bigint_col))` | ||
FROM `functional_alltypes` AS `t0` |
2 changes: 1 addition & 1 deletion
2
...a/tests/snapshots/test_coalesce_greater_least/test_varargs_functions/least_scalar/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 | ||
LEAST(`t0`.`string_col`, 'foo') AS `Least()` | ||
LEAST(`t0`.`string_col`, 'foo') AS `Least((string_col, 'foo'))` | ||
FROM `functional_alltypes` AS `t0` |
2 changes: 1 addition & 1 deletion
2
ibis/backends/impala/tests/snapshots/test_in_not_in/test_field_in_literals/isin/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`.`g` IN ('foo', 'bar', 'baz') AS `InValues(g)` | ||
`t0`.`g` IN ('foo', 'bar', 'baz') AS `InValues(g, ('foo', 'bar', 'baz'))` | ||
FROM `alltypes` AS `t0` |
2 changes: 1 addition & 1 deletion
2
ibis/backends/impala/tests/snapshots/test_in_not_in/test_field_in_literals/notin/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 | ||
NOT ( | ||
`t0`.`g` IN ('foo', 'bar', 'baz') | ||
) AS `Not(InValues(g))` | ||
) AS `Not(InValues(g, ('foo', 'bar', 'baz')))` | ||
FROM `alltypes` AS `t0` |
2 changes: 1 addition & 1 deletion
2
ibis/backends/impala/tests/snapshots/test_in_not_in/test_literal_in_fields/isin/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 | ||
2 IN (`t0`.`a`, `t0`.`b`, `t0`.`c`) AS `InValues(2)` | ||
2 IN (`t0`.`a`, `t0`.`b`, `t0`.`c`) AS `InValues(2, (a, b, c))` | ||
FROM `alltypes` AS `t0` |
2 changes: 1 addition & 1 deletion
2
ibis/backends/impala/tests/snapshots/test_in_not_in/test_literal_in_fields/notin/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 | ||
NOT ( | ||
2 IN (`t0`.`a`, `t0`.`b`, `t0`.`c`) | ||
) AS `Not(InValues(2))` | ||
) AS `Not(InValues(2, (a, b, c)))` | ||
FROM `alltypes` AS `t0` |
2 changes: 1 addition & 1 deletion
2
...la/tests/snapshots/test_string_builtins/test_string_builtins/find_in_set_multiple/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 | ||
FIND_IN_SET(`t0`.`string_col`, CONCAT_WS(',', 'a', 'b')) - 1 AS `FindInSet(string_col)` | ||
FIND_IN_SET(`t0`.`string_col`, CONCAT_WS(',', 'a', 'b')) - 1 AS `FindInSet(string_col, ('a', 'b'))` | ||
FROM `functional_alltypes` AS `t0` |
2 changes: 1 addition & 1 deletion
2
...pala/tests/snapshots/test_string_builtins/test_string_builtins/find_in_set_single/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 | ||
FIND_IN_SET(`t0`.`string_col`, CONCAT_WS(',', 'a')) - 1 AS `FindInSet(string_col)` | ||
FIND_IN_SET(`t0`.`string_col`, CONCAT_WS(',', 'a')) - 1 AS `FindInSet(string_col, ('a',))` | ||
FROM `functional_alltypes` AS `t0` |
2 changes: 1 addition & 1 deletion
2
ibis/backends/impala/tests/snapshots/test_string_builtins/test_string_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,2 +1,2 @@ | ||
SELECT | ||
CONCAT_WS(',', 'a', 'b') AS `StringJoin(',')` | ||
CONCAT_WS(',', 'a', 'b') AS `StringJoin(('a', 'b'), ',')` |
2 changes: 1 addition & 1 deletion
2
.../snapshots/test_unary_builtins/test_numeric_unary_builtins/double_col-zero_ifnull/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 | ||
COALESCE(`t0`.`double_col`, 0) AS `Coalesce()` | ||
COALESCE(`t0`.`double_col`, 0) AS `Coalesce((double_col, 0))` | ||
FROM `functional_alltypes` AS `t0` |
2 changes: 1 addition & 1 deletion
2
...sts/snapshots/test_unary_builtins/test_numeric_unary_builtins/int_col-zero_ifnull/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 | ||
COALESCE(`t0`.`int_col`, 0) AS `Coalesce()` | ||
COALESCE(`t0`.`int_col`, 0) AS `Coalesce((int_col, 0))` | ||
FROM `functional_alltypes` AS `t0` |