pyarrow.substrait.SubstraitSchema#

class pyarrow.substrait.SubstraitSchema(schema, expression)#

Bases: object

A Schema encoded for Substrait usage.

The SubstraitSchema contains a schema represented both as a substrait NamedStruct and as an ExtendedExpression.

The ExtendedExpression is available for cases where types used by the schema require extensions to decode them. In such case the schema will be the base_schema of the ExtendedExpression and all extensions will be provided.

__init__(self, schema, expression)#

Methods

__init__(self, schema, expression)

to_pysubstrait(self)

Convert the schema to a substrait-python ExtendedExpression object.

to_pysubstrait(self)#

Convert the schema to a substrait-python ExtendedExpression object.