pub struct FunctionOptions {
    pub collect_groups: ApplyOptions,
    pub input_wildcard_expansion: bool,
    pub auto_explode: bool,
    pub fmt_str: &'static str,
    pub cast_to_supertypes: bool,
    pub allow_rename: bool,
}

Fields

collect_groups: ApplyOptions

Collect groups to a list and apply the function over the groups. This can be important in aggregation context.

input_wildcard_expansion: bool

There can be two ways of expanding wildcards:

Say the schema is ‘a’, ‘b’ and there is a function f f(‘*’) can expand to:

  1. f(‘a’, ‘b’) or
  2. f(‘a’), f(‘b’)

setting this to true, will lead to behavior 1.

this also accounts for regex expansion

auto_explode: bool

automatically explode on unit length it ran as final aggregation.

this is the case for aggregations like sum, min, covariance etc. We need to know this because we cannot see the difference between the following functions based on the output type and number of elements:

x: {1, 2, 3}

head_1(x) -> {1} sum(x) -> {4}

fmt_str: &'static strcast_to_supertypes: boolallow_rename: bool

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.