Skip to main content

Module expression

Module expression 

Source
Expand description

Nested message and enum types in Expression.

Modules§

cast
Nested message and enum types in Cast.
embedded_function
Nested message and enum types in EmbeddedFunction.
enum
Nested message and enum types in Enum.
field_reference
Nested message and enum types in FieldReference.
if_then
Nested message and enum types in IfThen.
literal
Nested message and enum types in Literal.
mask_expression
Nested message and enum types in MaskExpression.
multi_or_list
Nested message and enum types in MultiOrList.
nested
Nested message and enum types in Nested.
reference_segment
Nested message and enum types in ReferenceSegment.
subquery
Nested message and enum types in Subquery.
switch_expression
Nested message and enum types in SwitchExpression.
window_function
Nested message and enum types in WindowFunction.

Structs§

Cast
EmbeddedFunction
Enum
FieldReference
A reference to data within a structured object, supporting navigation into nested fields. The root_type specifies the origin of the data (input record, outer query, lambda parameters, or an arbitrary expression), and the reference_type specifies how to navigate from that root (either a direct path to a single element or a mask selecting multiple elements).
IfThen
Lambda
A lambda expression representing an inline, anonymous function. Lambda expressions have parameters and a body expression that can reference those parameters using FieldReference with FieldReference.LambdaParameterReference as the root_type.
LambdaInvocation
Invokes an inline lambda expression with provided arguments. Enables immediate invocation patterns like: ((x) -> x * 2)(5)
Literal
MaskExpression
A reference that takes an existing subtype and selectively removes fields from it. For example, one might initially have an inner struct with 100 fields but a a particular operation only needs to interact with only 2 of those 100 fields. In this situation, one would use a mask expression to eliminate the 98 fields that are not relevant to the rest of the operation pipeline.
MultiOrList
Nested
Expression to dynamically construct nested types.
ReferenceSegment
A way to reference the inner property of a complex record. Can reference either a map key by literal, a struct field by the ordinal position of the desired field or a particular element in an array. Supports expressions that would roughly translate to something similar to: a.b[2].c[‘my_map_key’].x where a,b,c and x are struct field references (ordinalized in the internal representation here), [2] is a list offset and [‘my_map_key’] is a reference into a map field.
ScalarFunction
A scalar function call.
SingularOrList
Subquery
Subquery relation expression
SwitchExpression
WindowFunction
A window function call.

Enums§

RexType