@@ -74,7 +74,7 @@ def serialize(sql: str, ctx: SessionContext, path: str | pathlib.Path) -> None:
74
74
ctx: SessionContext to use.
75
75
path: Path to write the Substrait plan to.
76
76
"""
77
- return substrait_internal .Serde .serialize (sql , ctx .ctx , str (path ))
77
+ return substrait_internal .serde .serialize (sql , ctx .ctx , str (path ))
78
78
79
79
@staticmethod
80
80
def serialize_to_plan (sql : str , ctx : SessionContext ) -> Plan :
@@ -87,7 +87,7 @@ def serialize_to_plan(sql: str, ctx: SessionContext) -> Plan:
87
87
Returns:
88
88
Substrait plan.
89
89
"""
90
- return Plan (substrait_internal .Serde .serialize_to_plan (sql , ctx .ctx ))
90
+ return Plan (substrait_internal .serde .serialize_to_plan (sql , ctx .ctx ))
91
91
92
92
@staticmethod
93
93
def serialize_bytes (sql : str , ctx : SessionContext ) -> bytes :
@@ -100,7 +100,7 @@ def serialize_bytes(sql: str, ctx: SessionContext) -> bytes:
100
100
Returns:
101
101
Substrait plan as bytes.
102
102
"""
103
- return substrait_internal .Serde .serialize_bytes (sql , ctx .ctx )
103
+ return substrait_internal .serde .serialize_bytes (sql , ctx .ctx )
104
104
105
105
@staticmethod
106
106
def deserialize (path : str | pathlib .Path ) -> Plan :
@@ -112,7 +112,7 @@ def deserialize(path: str | pathlib.Path) -> Plan:
112
112
Returns:
113
113
Substrait plan.
114
114
"""
115
- return Plan (substrait_internal .Serde .deserialize (str (path )))
115
+ return Plan (substrait_internal .serde .deserialize (str (path )))
116
116
117
117
@staticmethod
118
118
def deserialize_bytes (proto_bytes : bytes ) -> Plan :
@@ -124,7 +124,7 @@ def deserialize_bytes(proto_bytes: bytes) -> Plan:
124
124
Returns:
125
125
Substrait plan.
126
126
"""
127
- return Plan (substrait_internal .Serde .deserialize_bytes (proto_bytes ))
127
+ return Plan (substrait_internal .serde .deserialize_bytes (proto_bytes ))
128
128
129
129
130
130
@deprecated ("Use `Serde` instead." )
@@ -149,7 +149,7 @@ def to_substrait_plan(logical_plan: LogicalPlan, ctx: SessionContext) -> Plan:
149
149
Substrait plan.
150
150
"""
151
151
return Plan (
152
- substrait_internal .Producer .to_substrait_plan (logical_plan , ctx .ctx )
152
+ substrait_internal .producer .to_substrait_plan (logical_plan , ctx .ctx )
153
153
)
154
154
155
155
@@ -174,7 +174,7 @@ def from_substrait_plan(ctx: SessionContext, plan: Plan) -> LogicalPlan:
174
174
Returns:
175
175
LogicalPlan.
176
176
"""
177
- return substrait_internal .Consumer .from_substrait_plan (
177
+ return substrait_internal .consumer .from_substrait_plan (
178
178
ctx .ctx , plan .plan_internal
179
179
)
180
180
0 commit comments