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/typing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
exp.EndsWith,
exp.Exists,
exp.In,
exp.IsInf,
exp.LogicalAnd,
exp.LogicalOr,
exp.RegexpLike,
Expand Down
1 change: 0 additions & 1 deletion sqlglot/typing/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ def _annotate_array(self: TypeAnnotator, expression: exp.Array) -> exp.Array:
**{
expr_type: {"returns": exp.DataType.Type.BOOLEAN}
for expr_type in {
exp.IsInf,
exp.IsNan,
exp.JSONBool,
exp.LaxBool,
Expand Down
9 changes: 8 additions & 1 deletion tests/fixtures/optimizer/annotate_functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ DOUBLE;
CBRT(tbl.double_col);
DOUBLE;

ISINF(tbl.float_col);
BOOLEAN;

# dialect: snowflake
TO_BINARY('test');
BINARY;
Expand Down Expand Up @@ -5610,4 +5613,8 @@ DOUBLE;

# dialect: duckdb
COS(tbl.double_col);
DOUBLE;
DOUBLE;

# dialect: duckdb
ISINF(tbl.float_col);
BOOLEAN;