Skip to content

Commit 7464e8f

Browse files
committed
Consider frozen and rely on underlying rust classes to manage mutability
1 parent 4e2fca0 commit 7464e8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ impl PySQLOptions {
296296
/// `PySessionContext` is able to plan and execute DataFusion plans.
297297
/// It has a powerful optimizer, a physical planner for local execution, and a
298298
/// multi-threaded execution engine to perform the execution.
299-
#[pyclass(name = "SessionContext", module = "datafusion", subclass)]
299+
#[pyclass(frozen, name = "SessionContext", module = "datafusion", subclass)]
300300
#[derive(Clone)]
301301
pub struct PySessionContext {
302302
pub ctx: SessionContext,

src/substrait.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl PySubstraitConsumer {
138138
/// Convert Substrait Plan to DataFusion DataFrame
139139
#[staticmethod]
140140
pub fn from_substrait_plan(
141-
ctx: &mut PySessionContext,
141+
ctx: &PySessionContext,
142142
plan: PyPlan,
143143
py: Python,
144144
) -> PyDataFusionResult<PyLogicalPlan> {

0 commit comments

Comments
 (0)