All Downloads are FREE. Search and download functionalities are using the official Maven repository.

core.0.42.0.source-code.functions_set.yaml Maven / Gradle / Ivy

Go to download

Create a well-defined, cross-language specification for data compute operations

There is a newer version: 0.46.1
Show newest version
%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 `needle` if `needle` is equal to
      any element in `haystack`.  Returns `NULL` if not found.

      If `needle` is `NULL`, returns `NULL`.

      If `needle` is `NaN`:
        - Returns 0-based index of `NaN` in `input` (default)
        - Returns `NULL` (if `NAN_IS_NOT_NAN` is specified)
    impls:
      - args:
          - name: needle
            value: any1
          - name: haystack
            value: list
        options:
          nan_equality:
            values: [ NAN_IS_NAN, NAN_IS_NOT_NAN ]
        nullability: DECLARED_OUTPUT
        return: i64?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy