Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: clarify behavior of is_null, is_not_null, is_nan, is_finite, and is_infinite for nulls #285

Merged
merged 2 commits into from
Sep 2, 2022
Merged
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
20 changes: 11 additions & 9 deletions extensions/functions_comparison.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,53 +77,55 @@ scalar_functions:
return: BOOLEAN
-
name: "is_null"
description: Whether a value is null.
description: Whether a value is null. NaN is not null.
impls:
- args:
- value: any1
return: BOOLEAN
nullability: DECLARED_OUTPUT
thisisnic marked this conversation as resolved.
Show resolved Hide resolved
-
name: "is_not_null"
description: Whether a value is not null.
description: Whether a value is not null. NaN is not null.
impls:
- args:
- value: any1
return: BOOLEAN
nullability: DECLARED_OUTPUT
-
name: "is_nan"
description: Whether a value is not a number.
description: Whether a value is not a number. If input is null, output will be null.
impls:
- args:
- value: fp32
nullability: MIRROR
return: BOOLEAN
- args:
- value: fp64
nullability: MIRROR
return: BOOLEAN
-
name: "is_finite"
description: Whether a value is finite (neither infinite nor NaN).
description: Whether a value is finite (neither infinite nor NaN). If input is null, output will be null.
impls:
- args:
- value: fp32
nullability: DECLARED_OUTPUT
nullability: MIRROR
return: BOOLEAN
- args:
- value: fp64
nullability: DECLARED_OUTPUT
nullability: MIRROR
return: BOOLEAN
-
name: "is_infinite"
description: Whether a value is infinite.
description: Whether a value is infinite. If input is null, output will be null.
impls:
- args:
- value: fp32
nullability: DECLARED_OUTPUT
nullability: MIRROR
return: BOOLEAN
- args:
- value: fp64
nullability: DECLARED_OUTPUT
nullability: MIRROR
return: BOOLEAN
-
name: "nullif"
Expand Down