registryEntry: (String, (ExpressionInfo, FunctionBuilder))
CreateStruct Function Builder
CreateStruct is a function builder (e.g. Seq[Expression] ⇒ Expression) that can create CreateNamedStruct expressions and is the metadata of the struct function.
Metadata of struct Function — registryEntry Property
registryEntry…FIXME
|
Note
|
registryEntry is used exclusively when FunctionRegistry is requested for the function expression registry.
|
Creating CreateNamedStruct Expression — apply Method
apply(children: Seq[Expression]): CreateNamedStruct
|
Note
|
apply is part of Scala’s scala.Function1 contract to create a function of one parameter (e.g. Seq[Expression]).
|
apply creates a CreateNamedStruct expression with the input children expressions as follows:
-
For NamedExpression expressions that are resolved,
applycreates a pair of a Literal expression (with the name of theNamedExpression) and theNamedExpressionitself -
For NamedExpression expressions that are not resolved yet,
applycreates a pair of aNamePlaceholderexpression and theNamedExpressionitself -
For all other expressions,
applycreates a pair of a Literal expression (with the value ascol[index]) and theExpressionitself
|
Note
|
|