Skip to content

Commit 830eaf3

Browse files
update snapshots
1 parent 832ff67 commit 830eaf3

File tree

263 files changed

+4917
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

263 files changed

+4917
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
WITH `bfcte_0` AS (
2+
SELECT
3+
`float64_col`,
4+
`int64_col`
5+
FROM `bigframes-dev`.`sqlglot_test`.`scalar_types`
6+
), `bfcte_1` AS (
7+
SELECT
8+
CORR(`int64_col`, `float64_col`) AS `bfcol_2`
9+
FROM `bfcte_0`
10+
)
111
SELECT
212
`bfcol_2` AS `corr_col`
313
FROM `bfcte_1`
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
WITH `bfcte_0` AS (
2+
SELECT
3+
`float64_col`,
4+
`int64_col`
5+
FROM `bigframes-dev`.`sqlglot_test`.`scalar_types`
6+
), `bfcte_1` AS (
7+
SELECT
8+
COVAR_SAMP(`int64_col`, `float64_col`) AS `bfcol_2`
9+
FROM `bfcte_0`
10+
)
111
SELECT
212
`bfcol_2` AS `cov_col`
313
FROM `bfcte_1`
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
WITH `bfcte_0` AS (
2+
SELECT
3+
`bool_col`,
4+
`bytes_col`,
5+
`date_col`,
6+
`datetime_col`,
7+
`duration_col`,
8+
`float64_col`,
9+
`geography_col`,
10+
`int64_col`,
11+
`int64_too`,
12+
`numeric_col`,
13+
`rowindex`,
14+
`rowindex_2`,
15+
`string_col`,
16+
`time_col`,
17+
`timestamp_col`
18+
FROM `bigframes-dev`.`sqlglot_test`.`scalar_types`
19+
), `bfcte_1` AS (
20+
SELECT
21+
*,
22+
ROW_NUMBER() OVER () AS `bfcol_32`
23+
FROM `bfcte_0`
24+
)
125
SELECT
226
`bfcol_32` AS `row_number`
327
FROM `bfcte_1`
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
WITH `bfcte_0` AS (
2+
SELECT
3+
`int64_col`
4+
FROM `bigframes-dev`.`sqlglot_test`.`scalar_types`
5+
), `bfcte_1` AS (
6+
SELECT
7+
*,
8+
ROW_NUMBER() OVER (ORDER BY `int64_col` ASC NULLS LAST) AS `bfcol_1`
9+
FROM `bfcte_0`
10+
)
111
SELECT
212
`bfcol_1` AS `row_number`
313
FROM `bfcte_1`
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
WITH `bfcte_0` AS (
2+
SELECT
3+
`bool_col`,
4+
`bytes_col`,
5+
`date_col`,
6+
`datetime_col`,
7+
`duration_col`,
8+
`float64_col`,
9+
`geography_col`,
10+
`int64_col`,
11+
`int64_too`,
12+
`numeric_col`,
13+
`rowindex`,
14+
`rowindex_2`,
15+
`string_col`,
16+
`time_col`,
17+
`timestamp_col`
18+
FROM `bigframes-dev`.`sqlglot_test`.`scalar_types`
19+
), `bfcte_1` AS (
20+
SELECT
21+
COUNT(1) AS `bfcol_32`
22+
FROM `bfcte_0`
23+
)
124
SELECT
225
`bfcol_32` AS `size`
326
FROM `bfcte_1`
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
WITH `bfcte_0` AS (
2+
SELECT
3+
`int64_col`
4+
FROM `bigframes-dev`.`sqlglot_test`.`scalar_types`
5+
), `bfcte_1` AS (
6+
SELECT
7+
ARRAY_AGG(`int64_col` IGNORE NULLS ORDER BY `int64_col` IS NULL ASC, `int64_col` ASC) AS `bfcol_1`
8+
FROM `bfcte_0`
9+
)
110
SELECT
211
`bfcol_1` AS `int64_col`
312
FROM `bfcte_1`
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
WITH `bfcte_0` AS (
2+
SELECT
3+
`string_col`
4+
FROM `bigframes-dev`.`sqlglot_test`.`scalar_types`
5+
), `bfcte_1` AS (
6+
SELECT
7+
COALESCE(
8+
STRING_AGG(`string_col` ORDER BY `string_col` IS NULL ASC, `string_col` ASC, ','),
9+
''
10+
) AS `bfcol_1`
11+
FROM `bfcte_0`
12+
)
113
SELECT
214
`bfcol_1` AS `string_col`
315
FROM `bfcte_1`
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
WITH `bfcte_0` AS (
2+
SELECT
3+
`bool_col`
4+
FROM `bigframes-dev`.`sqlglot_test`.`scalar_types`
5+
), `bfcte_1` AS (
6+
SELECT
7+
COALESCE(LOGICAL_AND(`bool_col`), TRUE) AS `bfcol_1`
8+
FROM `bfcte_0`
9+
)
110
SELECT
211
`bfcol_1` AS `bool_col`
312
FROM `bfcte_1`
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
WITH `bfcte_0` AS (
2+
SELECT
3+
`bool_col`
4+
FROM `bigframes-dev`.`sqlglot_test`.`scalar_types`
5+
), `bfcte_1` AS (
6+
SELECT
7+
*,
8+
COALESCE(LOGICAL_AND(`bool_col`) OVER (), TRUE) AS `bfcol_1`
9+
FROM `bfcte_0`
10+
)
111
SELECT
212
`bfcol_1` AS `agg_bool`
313
FROM `bfcte_1`
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
WITH `bfcte_0` AS (
2+
SELECT
3+
`bool_col`,
4+
`string_col`
5+
FROM `bigframes-dev`.`sqlglot_test`.`scalar_types`
6+
), `bfcte_1` AS (
7+
SELECT
8+
*,
9+
COALESCE(LOGICAL_AND(`bool_col`) OVER (PARTITION BY `string_col`), TRUE) AS `bfcol_2`
10+
FROM `bfcte_0`
11+
)
112
SELECT
213
`bfcol_2` AS `agg_bool`
314
FROM `bfcte_1`

0 commit comments

Comments
 (0)