gravitino.api.expressions.unparsed_expression.UnparsedExpression

class gravitino.api.expressions.unparsed_expression.UnparsedExpression

Bases: Expression

Represents an expression that is not parsed yet. The parsed expression is represented by FunctionExpression, literal.py, or NamedReference.

__init__()

Methods

__init__()

children()

Unparsed expressions do not have children.

of(unparsed_expression)

Creates a new UnparsedExpression with the given unparsed expression.

references()

Returns a list of fields or columns that are referenced by this expression.

unparsed_expression()

Returns the unparsed expression as a string.

Attributes

EMPTY_EXPRESSION

EMPTY_EXPRESSION is only used as an input when the default children method builds the result.

EMPTY_NAMED_REFERENCE

EMPTY_NAMED_REFERENCE is only used as an input when the default references method builds the result array to avoid repeatedly allocating an empty array.

EMPTY_EXPRESSION: List[Expression] = []

EMPTY_EXPRESSION is only used as an input when the default children method builds the result.

EMPTY_NAMED_REFERENCE: List[NamedReference] = []

EMPTY_NAMED_REFERENCE is only used as an input when the default references method builds the result array to avoid repeatedly allocating an empty array.

children() list[Expression]

Unparsed expressions do not have children.

static of(unparsed_expression: str) UnparsedExpressionImpl

Creates a new UnparsedExpression with the given unparsed expression.

Parameters:

unparsed_expression – The unparsed expression as a string.

Returns:

The created UnparsedExpression.

references() List[NamedReference]

Returns a list of fields or columns that are referenced by this expression.

unparsed_expression() str

Returns the unparsed expression as a string.