pyarrow.substrait.SubstraitSchema#
- class pyarrow.substrait.SubstraitSchema(schema, expression)#
Bases:
objectA Schema encoded for Substrait usage.
The SubstraitSchema contains a schema represented both as a substrait
NamedStructand as anExtendedExpression.The
ExtendedExpressionis available for cases where types used by the schema require extensions to decode them. In such case the schema will be thebase_schemaof theExtendedExpressionand 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.