Skip to content

Commit

Permalink
feat(set): add basic set membership operations (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
gforsyth authored Aug 16, 2022
1 parent 4e70145 commit 1bd1bd1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions extensions/functions_set.yaml
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?

0 comments on commit 1bd1bd1

Please sign in to comment.