Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sqlglot/dialects/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ class Snowflake(Dialect):
exp.Degrees,
exp.Exp,
exp.Sin,
exp.Sinh,
exp.Tan,
exp.Asin,
exp.Cbrt,
Expand Down
1 change: 1 addition & 0 deletions tests/dialects/test_snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def test_snowflake(self):
self.validate_identity("SELECT GET(a, b)")
self.validate_identity("SELECT TAN(x)")
self.validate_identity("SELECT COS(x)")
self.validate_identity("SELECT SINH(1.5)")
self.validate_identity("SELECT MOD(x, y)", "SELECT x % y")
self.validate_identity("SELECT ROUND(x)")
self.validate_identity("SELECT ROUND(123.456, -1)")
Expand Down
8 changes: 8 additions & 0 deletions tests/fixtures/optimizer/annotate_functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2243,6 +2243,14 @@ VARCHAR;
SIN(tbl.double_col);
DOUBLE;

# dialect: snowflake
SINH(1);
DOUBLE;

# dialect: snowflake
SINH(1.5);
DOUBLE;

# dialect: snowflake
SIGN(tbl.double_col);
INT;
Expand Down