Skip to content

Commit 599ef60

Browse files
committed
serde functions have been deprecated since DF42
1 parent e6e6459 commit 599ef60

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

python/datafusion/substrait.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@
2525

2626
from typing import TYPE_CHECKING
2727

28-
try:
29-
from warnings import deprecated # Python 3.13+
30-
except ImportError:
31-
from typing_extensions import deprecated # Python 3.12
32-
3328
from datafusion.plan import LogicalPlan
3429

3530
from ._internal import substrait as substrait_internal
@@ -88,11 +83,6 @@ def from_json(json: str) -> Plan:
8883
return Plan(substrait_internal.Plan.from_json(json))
8984

9085

91-
@deprecated("Use `Plan` instead.")
92-
class plan(Plan): # noqa: N801
93-
"""See `Plan`."""
94-
95-
9686
class Serde:
9787
"""Provides the ``Substrait`` serialization and deserialization."""
9888

@@ -158,11 +148,6 @@ def deserialize_bytes(proto_bytes: bytes) -> Plan:
158148
return Plan(substrait_internal.Serde.deserialize_bytes(proto_bytes))
159149

160150

161-
@deprecated("Use `Serde` instead.")
162-
class serde(Serde): # noqa: N801
163-
"""See `Serde` instead."""
164-
165-
166151
class Producer:
167152
"""Generates substrait plans from a logical plan."""
168153

@@ -184,11 +169,6 @@ def to_substrait_plan(logical_plan: LogicalPlan, ctx: SessionContext) -> Plan:
184169
)
185170

186171

187-
@deprecated("Use `Producer` instead.")
188-
class producer(Producer): # noqa: N801
189-
"""Use `Producer` instead."""
190-
191-
192172
class Consumer:
193173
"""Generates a logical plan from a substrait plan."""
194174

@@ -206,8 +186,3 @@ def from_substrait_plan(ctx: SessionContext, plan: Plan) -> LogicalPlan:
206186
return LogicalPlan(
207187
substrait_internal.Consumer.from_substrait_plan(ctx.ctx, plan.plan_internal)
208188
)
209-
210-
211-
@deprecated("Use `Consumer` instead.")
212-
class consumer(Consumer): # noqa: N801
213-
"""Use `Consumer` instead."""

0 commit comments

Comments
 (0)