pyarrow.substrait.BoundExpressions#

class pyarrow.substrait.BoundExpressions#

Bases: _Weakrefable

A collection of named expressions and the schema they are bound to

This is equivalent to the Substrait ExtendedExpression message

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

from_substrait(cls, message)

Convert a Substrait message into a BoundExpressions object

Attributes

expressions

A dict from expression name to expression

schema

The common schema that all expressions are bound to

expressions#

A dict from expression name to expression

classmethod from_substrait(cls, message)#

Convert a Substrait message into a BoundExpressions object

Parameters:
messageBuffer or bytes or protobuf Message

The message to convert to a BoundExpressions object

Returns:
BoundExpressions

The converted expressions, their names, and the bound schema

schema#

The common schema that all expressions are bound to