Skip to content

Commit a1d3d76

Browse files
committed
convert unary tests too
1 parent cc85630 commit a1d3d76

File tree

13 files changed

+104
-49
lines changed

13 files changed

+104
-49
lines changed

tests/unit/core/compile/sqlglot/expressions/snapshots/test_unary_compiler/test_array_index/out.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ WITH `bfcte_0` AS (
1010
FROM `bfcte_0`
1111
)
1212
SELECT
13-
`bfcol_0` AS `rowindex`,
14-
`bfcol_4` AS `string_list_col`
13+
`bfcol_0` AS `bfuid_col_1`,
14+
`bfcol_1` AS `string_list_col`,
15+
`bfcol_4` AS `bfuid_col_3`
1516
FROM `bfcte_1`

tests/unit/core/compile/sqlglot/expressions/snapshots/test_unary_compiler/test_array_slice_with_only_start/out.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ WITH `bfcte_0` AS (
1616
FROM `bfcte_0`
1717
)
1818
SELECT
19-
`bfcol_0` AS `rowindex`,
20-
`bfcol_4` AS `string_list_col`
19+
`bfcol_0` AS `bfuid_col_1`,
20+
`bfcol_1` AS `string_list_col`,
21+
`bfcol_4` AS `bfuid_col_4`
2122
FROM `bfcte_1`

tests/unit/core/compile/sqlglot/expressions/snapshots/test_unary_compiler/test_array_slice_with_start_and_stop/out.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ WITH `bfcte_0` AS (
1616
FROM `bfcte_0`
1717
)
1818
SELECT
19-
`bfcol_0` AS `rowindex`,
20-
`bfcol_4` AS `string_list_col`
19+
`bfcol_0` AS `bfuid_col_1`,
20+
`bfcol_1` AS `string_list_col`,
21+
`bfcol_4` AS `bfuid_col_5`
2122
FROM `bfcte_1`

tests/unit/core/compile/sqlglot/expressions/snapshots/test_unary_compiler/test_array_to_string/out.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ WITH `bfcte_0` AS (
1010
FROM `bfcte_0`
1111
)
1212
SELECT
13-
`bfcol_0` AS `rowindex`,
14-
`bfcol_4` AS `string_list_col`
13+
`bfcol_0` AS `bfuid_col_1`,
14+
`bfcol_1` AS `string_list_col`,
15+
`bfcol_4` AS `bfuid_col_2`
1516
FROM `bfcte_1`

tests/unit/core/compile/sqlglot/expressions/snapshots/test_unary_compiler/test_json_extract/out.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ WITH `bfcte_0` AS (
1010
FROM `bfcte_0`
1111
)
1212
SELECT
13-
`bfcol_0` AS `rowindex`,
14-
`bfcol_4` AS `json_col`
13+
`bfcol_0` AS `bfuid_col_6`,
14+
`bfcol_1` AS `json_col`,
15+
`bfcol_4` AS `bfuid_col_7`
1516
FROM `bfcte_1`

tests/unit/core/compile/sqlglot/expressions/snapshots/test_unary_compiler/test_json_extract_array/out.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ WITH `bfcte_0` AS (
1010
FROM `bfcte_0`
1111
)
1212
SELECT
13-
`bfcol_0` AS `rowindex`,
14-
`bfcol_4` AS `json_col`
13+
`bfcol_0` AS `bfuid_col_6`,
14+
`bfcol_1` AS `json_col`,
15+
`bfcol_4` AS `bfuid_col_8`
1516
FROM `bfcte_1`

tests/unit/core/compile/sqlglot/expressions/snapshots/test_unary_compiler/test_json_extract_string_array/out.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ WITH `bfcte_0` AS (
1010
FROM `bfcte_0`
1111
)
1212
SELECT
13-
`bfcol_0` AS `rowindex`,
14-
`bfcol_4` AS `json_col`
13+
`bfcol_0` AS `bfuid_col_6`,
14+
`bfcol_1` AS `json_col`,
15+
`bfcol_4` AS `bfuid_col_9`
1516
FROM `bfcte_1`

tests/unit/core/compile/sqlglot/expressions/snapshots/test_unary_compiler/test_json_query/out.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ WITH `bfcte_0` AS (
1010
FROM `bfcte_0`
1111
)
1212
SELECT
13-
`bfcol_0` AS `rowindex`,
14-
`bfcol_4` AS `json_col`
13+
`bfcol_0` AS `bfuid_col_6`,
14+
`bfcol_1` AS `json_col`,
15+
`bfcol_4` AS `bfuid_col_10`
1516
FROM `bfcte_1`

tests/unit/core/compile/sqlglot/expressions/snapshots/test_unary_compiler/test_json_query_array/out.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ WITH `bfcte_0` AS (
1010
FROM `bfcte_0`
1111
)
1212
SELECT
13-
`bfcol_0` AS `rowindex`,
14-
`bfcol_4` AS `json_col`
13+
`bfcol_0` AS `bfuid_col_6`,
14+
`bfcol_1` AS `json_col`,
15+
`bfcol_4` AS `bfuid_col_11`
1516
FROM `bfcte_1`

tests/unit/core/compile/sqlglot/expressions/snapshots/test_unary_compiler/test_json_value/out.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ WITH `bfcte_0` AS (
1010
FROM `bfcte_0`
1111
)
1212
SELECT
13-
`bfcol_0` AS `rowindex`,
14-
`bfcol_4` AS `json_col`
13+
`bfcol_0` AS `bfuid_col_6`,
14+
`bfcol_1` AS `json_col`,
15+
`bfcol_4` AS `bfuid_col_12`
1516
FROM `bfcte_1`

0 commit comments

Comments
 (0)