Skip to content

Commit 69e1e6f

Browse files
authored
chore(deps): bump and relock (#11119)
Bump deps and regenerate lockfiles.
1 parent 0f23dc5 commit 69e1e6f

File tree

40 files changed

+4387
-4166
lines changed

40 files changed

+4387
-4166
lines changed

.github/workflows/nix-skip-helper.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,10 @@ jobs:
4343
- "3.12"
4444
- "3.13"
4545
include:
46-
- os: ubuntu-latest
47-
python-version: "3.9"
4846
- os: ubuntu-latest
4947
python-version: "3.10"
5048
- os: ubuntu-latest
5149
python-version: "3.11"
52-
- os: ubuntu-24.04-arm
53-
python-version: "3.9"
5450
- os: ubuntu-24.04-arm
5551
python-version: "3.10"
5652
- os: ubuntu-24.04-arm

.github/workflows/nix.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,10 @@ jobs:
4545
- "3.12"
4646
- "3.13"
4747
include:
48-
- os: ubuntu-latest
49-
python-version: "3.9"
5048
- os: ubuntu-latest
5149
python-version: "3.10"
5250
- os: ubuntu-latest
5351
python-version: "3.11"
54-
- os: ubuntu-24.04-arm
55-
python-version: "3.9"
5652
- os: ubuntu-24.04-arm
5753
python-version: "3.10"
5854
- os: ubuntu-24.04-arm

flake.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
# pyspark
7878
openjdk17_headless
7979
# postgres client
80+
libpq.pg_config
8081
postgresql
8182
# sqlite with readline
8283
sqlite-interactive
@@ -160,20 +161,18 @@
160161
packages = {
161162
default = packages.ibis313;
162163

163-
inherit (pkgs) ibis39 ibis310 ibis311 ibis312 ibis313
164+
inherit (pkgs) ibis310 ibis311 ibis312 ibis313
164165
update-lock-files check-release-notes-spelling;
165166
};
166167

167168
checks = {
168-
ibis39-pytest = pkgs.ibis39.passthru.tests.pytest;
169169
ibis310-pytest = pkgs.ibis310.passthru.tests.pytest;
170170
ibis311-pytest = pkgs.ibis311.passthru.tests.pytest;
171171
ibis312-pytest = pkgs.ibis312.passthru.tests.pytest;
172172
ibis313-pytest = pkgs.ibis313.passthru.tests.pytest;
173173
};
174174

175175
devShells = rec {
176-
ibis39 = mkDevShell pkgs.ibisDevEnv39;
177176
ibis310 = mkDevShell pkgs.ibisDevEnv310;
178177
ibis311 = mkDevShell pkgs.ibisDevEnv311;
179178
ibis312 = mkDevShell pkgs.ibisDevEnv312;

ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_range_window_function/prec_foll/out.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ SELECT
1212
`t0`.`timestamp_col`,
1313
`t0`.`year`,
1414
`t0`.`month`,
15-
AVG(`t0`.`float_col`) OVER (PARTITION BY `t0`.`year` ORDER BY `t0`.`month` ASC RANGE BETWEEN 1 preceding AND CURRENT ROW) AS `two_month_avg`
15+
AVG(`t0`.`float_col`) OVER (
16+
PARTITION BY `t0`.`year`
17+
ORDER BY `t0`.`month` ASC
18+
RANGE BETWEEN 1 preceding AND CURRENT ROW
19+
) AS `two_month_avg`
1620
FROM `functional_alltypes` AS `t0`

ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_range_window_function/prec_prec/out.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ SELECT
1212
`t0`.`timestamp_col`,
1313
`t0`.`year`,
1414
`t0`.`month`,
15-
AVG(`t0`.`float_col`) OVER (PARTITION BY `t0`.`year` ORDER BY `t0`.`timestamp_col` ASC RANGE BETWEEN 4 preceding AND 2 preceding) AS `two_month_avg`
15+
AVG(`t0`.`float_col`) OVER (
16+
PARTITION BY `t0`.`year`
17+
ORDER BY `t0`.`timestamp_col` ASC
18+
RANGE BETWEEN 4 preceding AND 2 preceding
19+
) AS `two_month_avg`
1620
FROM `functional_alltypes` AS `t0`

ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_trailing_range_window/days/out.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ SELECT
1212
`t0`.`timestamp_col`,
1313
`t0`.`year`,
1414
`t0`.`month`,
15-
AVG(`t0`.`float_col`) OVER (ORDER BY `t0`.`timestamp_col` ASC RANGE BETWEEN INTERVAL '1' DAY preceding AND INTERVAL 0 DAY following) AS `win_avg`
15+
AVG(`t0`.`float_col`) OVER (
16+
ORDER BY `t0`.`timestamp_col` ASC
17+
RANGE BETWEEN INTERVAL '1' DAY preceding AND INTERVAL 0 DAY following
18+
) AS `win_avg`
1619
FROM `functional_alltypes` AS `t0`

ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_trailing_range_window/hours/out.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ SELECT
1212
`t0`.`timestamp_col`,
1313
`t0`.`year`,
1414
`t0`.`month`,
15-
AVG(`t0`.`float_col`) OVER (ORDER BY `t0`.`timestamp_col` ASC RANGE BETWEEN INTERVAL '1' HOUR preceding AND INTERVAL 0 HOUR following) AS `win_avg`
15+
AVG(`t0`.`float_col`) OVER (
16+
ORDER BY `t0`.`timestamp_col` ASC
17+
RANGE BETWEEN INTERVAL '1' HOUR preceding AND INTERVAL 0 HOUR following
18+
) AS `win_avg`
1619
FROM `functional_alltypes` AS `t0`

ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_trailing_range_window/micros/out.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ SELECT
1212
`t0`.`timestamp_col`,
1313
`t0`.`year`,
1414
`t0`.`month`,
15-
AVG(`t0`.`float_col`) OVER (ORDER BY `t0`.`timestamp_col` ASC RANGE BETWEEN INTERVAL '1' MICROSECOND preceding AND INTERVAL 0 MICROSECOND following) AS `win_avg`
15+
AVG(`t0`.`float_col`) OVER (
16+
ORDER BY `t0`.`timestamp_col` ASC
17+
RANGE BETWEEN INTERVAL '1' MICROSECOND preceding AND INTERVAL 0 MICROSECOND following
18+
) AS `win_avg`
1619
FROM `functional_alltypes` AS `t0`

ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_trailing_range_window/minutes/out.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ SELECT
1212
`t0`.`timestamp_col`,
1313
`t0`.`year`,
1414
`t0`.`month`,
15-
AVG(`t0`.`float_col`) OVER (ORDER BY `t0`.`timestamp_col` ASC RANGE BETWEEN INTERVAL '1' MINUTE preceding AND INTERVAL 0 MINUTE following) AS `win_avg`
15+
AVG(`t0`.`float_col`) OVER (
16+
ORDER BY `t0`.`timestamp_col` ASC
17+
RANGE BETWEEN INTERVAL '1' MINUTE preceding AND INTERVAL 0 MINUTE following
18+
) AS `win_avg`
1619
FROM `functional_alltypes` AS `t0`

ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_trailing_range_window/seconds/out.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ SELECT
1212
`t0`.`timestamp_col`,
1313
`t0`.`year`,
1414
`t0`.`month`,
15-
AVG(`t0`.`float_col`) OVER (ORDER BY `t0`.`timestamp_col` ASC RANGE BETWEEN INTERVAL '1' SECOND preceding AND INTERVAL 0 SECOND following) AS `win_avg`
15+
AVG(`t0`.`float_col`) OVER (
16+
ORDER BY `t0`.`timestamp_col` ASC
17+
RANGE BETWEEN INTERVAL '1' SECOND preceding AND INTERVAL 0 SECOND following
18+
) AS `win_avg`
1619
FROM `functional_alltypes` AS `t0`

ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_trailing_range_window/two_days/out.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ SELECT
1212
`t0`.`timestamp_col`,
1313
`t0`.`year`,
1414
`t0`.`month`,
15-
AVG(`t0`.`float_col`) OVER (ORDER BY `t0`.`timestamp_col` ASC RANGE BETWEEN INTERVAL (EXTRACT(DAY FROM INTERVAL '1' DAY) * 2) DAY preceding AND INTERVAL 0 DAY following) AS `win_avg`
15+
AVG(`t0`.`float_col`) OVER (
16+
ORDER BY `t0`.`timestamp_col` ASC
17+
RANGE BETWEEN INTERVAL (EXTRACT(DAY FROM INTERVAL '1' DAY) * 2) DAY preceding AND INTERVAL 0 DAY following
18+
) AS `win_avg`
1619
FROM `functional_alltypes` AS `t0`

ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_trailing_range_window/week/out.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ SELECT
1212
`t0`.`timestamp_col`,
1313
`t0`.`year`,
1414
`t0`.`month`,
15-
AVG(`t0`.`float_col`) OVER (ORDER BY `t0`.`timestamp_col` ASC RANGE BETWEEN INTERVAL '1' WEEK preceding AND INTERVAL 0 WEEK following) AS `win_avg`
15+
AVG(`t0`.`float_col`) OVER (
16+
ORDER BY `t0`.`timestamp_col` ASC
17+
RANGE BETWEEN INTERVAL '1' WEEK preceding AND INTERVAL 0 WEEK following
18+
) AS `win_avg`
1619
FROM `functional_alltypes` AS `t0`

ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_window_function/current_foll/out.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ SELECT
1212
`t0`.`timestamp_col`,
1313
`t0`.`year`,
1414
`t0`.`month`,
15-
AVG(`t0`.`float_col`) OVER (PARTITION BY `t0`.`year` ORDER BY `t0`.`timestamp_col` ASC ROWS BETWEEN CURRENT ROW AND 2 following) AS `win_avg`
15+
AVG(`t0`.`float_col`) OVER (
16+
PARTITION BY `t0`.`year`
17+
ORDER BY `t0`.`timestamp_col` ASC
18+
ROWS BETWEEN CURRENT ROW AND 2 following
19+
) AS `win_avg`
1620
FROM `functional_alltypes` AS `t0`

ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_window_function/prec_current/out.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ SELECT
1212
`t0`.`timestamp_col`,
1313
`t0`.`year`,
1414
`t0`.`month`,
15-
AVG(`t0`.`float_col`) OVER (PARTITION BY `t0`.`year` ORDER BY `t0`.`timestamp_col` ASC ROWS BETWEEN 1 preceding AND CURRENT ROW) AS `win_avg`
15+
AVG(`t0`.`float_col`) OVER (
16+
PARTITION BY `t0`.`year`
17+
ORDER BY `t0`.`timestamp_col` ASC
18+
ROWS BETWEEN 1 preceding AND CURRENT ROW
19+
) AS `win_avg`
1620
FROM `functional_alltypes` AS `t0`

ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_window_function/prec_prec/out.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ SELECT
1212
`t0`.`timestamp_col`,
1313
`t0`.`year`,
1414
`t0`.`month`,
15-
AVG(`t0`.`float_col`) OVER (PARTITION BY `t0`.`year` ORDER BY `t0`.`timestamp_col` ASC ROWS BETWEEN 4 preceding AND 2 preceding) AS `win_avg`
15+
AVG(`t0`.`float_col`) OVER (
16+
PARTITION BY `t0`.`year`
17+
ORDER BY `t0`.`timestamp_col` ASC
18+
ROWS BETWEEN 4 preceding AND 2 preceding
19+
) AS `win_avg`
1620
FROM `functional_alltypes` AS `t0`

ibis/backends/impala/tests/snapshots/test_window/test_add_default_order_by/out.sql

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@ SELECT
1212
`t0`.`k`,
1313
LAG(`t0`.`f`) OVER (PARTITION BY `t0`.`g` ORDER BY NULL ASC) AS `lag`,
1414
LEAD(`t0`.`f`) OVER (PARTITION BY `t0`.`g` ORDER BY NULL ASC) - `t0`.`f` AS `fwd_diff`,
15-
FIRST_VALUE(`t0`.`f`) OVER (PARTITION BY `t0`.`g` ORDER BY NULL ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS `first`,
16-
LAST_VALUE(`t0`.`f`) OVER (PARTITION BY `t0`.`g` ORDER BY NULL ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS `last`,
15+
FIRST_VALUE(`t0`.`f`) OVER (
16+
PARTITION BY `t0`.`g`
17+
ORDER BY NULL ASC
18+
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
19+
) AS `first`,
20+
LAST_VALUE(`t0`.`f`) OVER (
21+
PARTITION BY `t0`.`g`
22+
ORDER BY NULL ASC
23+
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
24+
) AS `last`,
1725
LAG(`t0`.`f`) OVER (PARTITION BY `t0`.`g` ORDER BY `t0`.`d` ASC) AS `lag2`
1826
FROM `alltypes` AS `t0`
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
SELECT
22
`t0`.`g`,
3-
SUM(`t0`.`f`) OVER (PARTITION BY `t0`.`g` ORDER BY NULL ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) - SUM(`t0`.`f`) OVER (ORDER BY NULL ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS `result`
3+
SUM(`t0`.`f`) OVER (
4+
PARTITION BY `t0`.`g`
5+
ORDER BY NULL ASC
6+
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
7+
) - SUM(`t0`.`f`) OVER (ORDER BY NULL ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS `result`
48
FROM `alltypes` AS `t0`
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
SELECT
22
LAG(`t0`.`d`) OVER (PARTITION BY `t0`.`g` ORDER BY `t0`.`f` DESC NULLS LAST) AS `foo`,
3-
MAX(`t0`.`a`) OVER (PARTITION BY `t0`.`g` ORDER BY `t0`.`f` DESC NULLS LAST ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS `Max(a)`
3+
MAX(`t0`.`a`) OVER (
4+
PARTITION BY `t0`.`g`
5+
ORDER BY `t0`.`f` DESC NULLS LAST
6+
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
7+
) AS `Max(a)`
48
FROM `alltypes` AS `t0`
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
SELECT
22
[t0].[color],
33
[t0].[price],
4-
RANK() OVER (PARTITION BY [t0].[color] ORDER BY CASE WHEN [t0].[price] IS NULL THEN 1 ELSE 0 END, [t0].[price] ASC) - 1 AS [MinRank()]
4+
RANK() OVER (
5+
PARTITION BY [t0].[color]
6+
ORDER BY CASE WHEN [t0].[price] IS NULL THEN 1 ELSE 0 END, [t0].[price] ASC
7+
) - 1 AS [MinRank()]
58
FROM [diamonds_sample] AS [t0]
Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
SELECT
2-
RANK() OVER (ORDER BY "t0"."double_col" ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) - 1 AS "rank",
3-
DENSE_RANK() OVER (ORDER BY "t0"."double_col" ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) - 1 AS "dense_rank",
4-
CUME_DIST() OVER (ORDER BY "t0"."double_col" ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS "cume_dist",
5-
NTILE(7) OVER (ORDER BY "t0"."double_col" ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) - 1 AS "ntile",
6-
PERCENT_RANK() OVER (ORDER BY "t0"."double_col" ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS "percent_rank"
2+
RANK() OVER (
3+
ORDER BY "t0"."double_col" ASC
4+
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
5+
) - 1 AS "rank",
6+
DENSE_RANK() OVER (
7+
ORDER BY "t0"."double_col" ASC
8+
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
9+
) - 1 AS "dense_rank",
10+
CUME_DIST() OVER (
11+
ORDER BY "t0"."double_col" ASC
12+
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
13+
) AS "cume_dist",
14+
NTILE(7) OVER (
15+
ORDER BY "t0"."double_col" ASC
16+
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
17+
) - 1 AS "ntile",
18+
PERCENT_RANK() OVER (
19+
ORDER BY "t0"."double_col" ASC
20+
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
21+
) AS "percent_rank"
722
FROM "functional_alltypes" AS "t0"

ibis/backends/tests/snapshots/test_sql/test_mixed_qualified_and_unqualified_predicates/mssql/out.sql

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ FROM (
55
SELECT
66
[t1].[x] AS [x],
77
[t1].[y] AS [y],
8-
AVG([t1].[x]) OVER (ORDER BY CASE WHEN [t1].[x] IS NULL THEN 1 ELSE 0 END, [t1].[x] ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS _w
8+
AVG([t1].[x]) OVER (
9+
ORDER BY CASE WHEN [t1].[x] IS NULL THEN 1 ELSE 0 END, [t1].[x] ASC
10+
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
11+
) AS _w
912
FROM (
1013
SELECT
1114
[t0].[x],
12-
SUM([t0].[x]) OVER (ORDER BY CASE WHEN [t0].[x] IS NULL THEN 1 ELSE 0 END, [t0].[x] ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS [y]
15+
SUM([t0].[x]) OVER (
16+
ORDER BY CASE WHEN [t0].[x] IS NULL THEN 1 ELSE 0 END, [t0].[x] ASC
17+
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
18+
) AS [y]
1319
FROM [t] AS [t0]
1420
) AS [t1]
1521
WHERE

ibis/backends/tests/snapshots/test_sql/test_mixed_qualified_and_unqualified_predicates/mysql/out.sql

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ FROM (
55
SELECT
66
`t1`.`x`,
77
`t1`.`y`,
8-
AVG(`t1`.`x`) OVER (ORDER BY CASE WHEN NULL IS NULL THEN 1 ELSE 0 END, NULL ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS _w
8+
AVG(`t1`.`x`) OVER (
9+
ORDER BY CASE WHEN NULL IS NULL THEN 1 ELSE 0 END, NULL ASC
10+
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
11+
) AS _w
912
FROM (
1013
SELECT
1114
`t0`.`x`,
12-
SUM(`t0`.`x`) OVER (ORDER BY CASE WHEN NULL IS NULL THEN 1 ELSE 0 END, NULL ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS `y`
15+
SUM(`t0`.`x`) OVER (
16+
ORDER BY CASE WHEN NULL IS NULL THEN 1 ELSE 0 END, NULL ASC
17+
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
18+
) AS `y`
1319
FROM `t` AS `t0`
1420
) AS `t1`
1521
WHERE
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
SELECT
2-
NTILE(2) OVER (ORDER BY 0.5 + (
3-
CAST(RANDOM() AS REAL) / -1.8446744073709552e+19
4-
) ASC NULLS LAST ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) - 1 AS "new_col"
2+
NTILE(2) OVER (
3+
ORDER BY 0.5 + (
4+
CAST(RANDOM() AS REAL) / -1.8446744073709552e+19
5+
) ASC NULLS LAST
6+
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
7+
) - 1 AS "new_col"
58
FROM "test" AS "t0"
69
LIMIT 10

0 commit comments

Comments
 (0)