Skip to content

functions_list.yaml

This document file is generated for functions_list.yaml. The extension URN is extension:io.substrait:functions_list.

Scalar Functions

transform

Implementations: transform(input, transformer): -> return_type 0. transform(list<any1>, func<any1 -> any2>): -> list<any2>

Transforms each element of a list using the provided function. Also known as “map” in functional programming. Returns a new list where each element is the result of applying the transformer to the corresponding element in the input list. The transformer receives one parameter (the current element) and must return the transformed value.

filter

Implementations: filter(input, predicate): -> return_type 0. filter(list<any1>, func<any1 -> boolean>): -> list<any1>

Filters a list of elements based on a predicate function. Returns a new list containing only elements for which the predicate function returns true. The predicate receives one parameter (the current element) and must return a boolean. Elements for which the predicate returns true are included in the result. Elements for which the predicate returns false or null are excluded.