|
|
static constexpr const char * | Name = "list_position" |
|
static constexpr const char * | Parameters = "list,element" |
|
static constexpr const char * | Description = "Returns the index of the `element` if the `list` contains the `element`. If the `element` is not found, it returns `NULL`." |
|
static constexpr const char * | Example = "list_position([1, 2, NULL], 2)" |
|
static constexpr const char * | Categories = "list" |
◆ GetFunction()
226728 {
226729 auto fun = ScalarFunction({LogicalType::LIST(LogicalType::TEMPLATE("T")), LogicalType::TEMPLATE("T")},
226730 LogicalType::INTEGER, ListSearchFunction<int32_t, true>);
226731 fun.SetNullHandling(FunctionNullHandling::SPECIAL_HANDLING);
226732 return fun;
226733}
The documentation for this struct was generated from the following file: