-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(set): add basic set membership operations (#280)
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
%YAML 1.2 | ||
--- | ||
scalar_functions: | ||
- | ||
name: "index_in" | ||
description: > | ||
Checks the membership of a value in a list of values | ||
Returns the first 0-based index value of some input `T` if `T` is equal to | ||
any element in `List<T>`. Returns `NULL` if not found. | ||
If `T` is `NULL`, returns `NULL`. | ||
If `T` is `NaN`: | ||
- Returns 0-based index of `NaN` in `List<T>` (default) | ||
- Returns `NULL` (if `NAN_IS_NOT_NAN` is specified) | ||
impls: | ||
- args: | ||
- options: [ NAN_IS_NAN, NAN_IS_NOT_NAN ] | ||
required: false | ||
- value: T | ||
- value: List<T> | ||
nullability: DECLARED_OUTPUT | ||
return: int64? |