Skip to content

Commit 1b2d139

Browse files
committed
chore(optimizer): add type annotation tests with window for sf APPROX_PERCENTILE
1 parent a7d33d0 commit 1b2d139

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/fixtures/optimizer/annotate_functions.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3420,6 +3420,18 @@ DOUBLE;
34203420
APPROX_PERCENTILE(tbl.int_col, 0.9);
34213421
DOUBLE;
34223422

3423+
# dialect: snowflake
3424+
APPROX_PERCENTILE(tbl.bigint_col, 0.5) OVER (PARTITION BY 1);
3425+
DOUBLE;
3426+
3427+
# dialect: snowflake
3428+
APPROX_PERCENTILE(tbl.double_col, 0.5) OVER (PARTITION BY 1);
3429+
DOUBLE;
3430+
3431+
# dialect: snowflake
3432+
APPROX_PERCENTILE(tbl.int_col, 0.9) OVER (PARTITION BY 1);
3433+
DOUBLE;
3434+
34233435
--------------------------------------
34243436
-- T-SQL
34253437
--------------------------------------

0 commit comments

Comments
 (0)