Skip to content

Commit 3d39cef

Browse files
authored
Merge branch 'main' into abhishekaslk/annotate-random-duckdb
2 parents 951a06a + a6d7f6e commit 3d39cef

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

sqlglot/typing/duckdb.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
expr_type: {"returns": exp.DataType.Type.DOUBLE}
1616
for expr_type in {
1717
exp.Cos,
18+
exp.Cot,
1819
exp.Rand,
1920
exp.Sin,
21+
exp.Tan,
2022
}
2123
},
2224
}

tests/fixtures/optimizer/annotate_functions.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5618,6 +5618,22 @@ DOUBLE;
56185618
COS(tbl.double_col);
56195619
DOUBLE;
56205620

5621+
# dialect: duckdb
5622+
COT(tbl.int_col);
5623+
DOUBLE;
5624+
5625+
# dialect: duckdb
5626+
COT(tbl.double_col);
5627+
DOUBLE;
5628+
5629+
# dialect: duckdb
5630+
TAN(tbl.int_col);
5631+
DOUBLE;
5632+
5633+
# dialect: duckdb
5634+
TAN(tbl.double_col);
5635+
DOUBLE;
5636+
56215637
# dialect: duckdb
56225638
ISINF(tbl.float_col);
56235639
BOOLEAN;

0 commit comments

Comments
 (0)