Skip to content

Commit 71e20ed

Browse files
author
ShreyeshArangath
committed
fix build
1 parent afe8df8 commit 71e20ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/core/src/metrics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use std::sync::Arc;
2121
use datafusion::physical_plan::metrics::{Metric, MetricValue, MetricsSet, Timestamp};
2222
use pyo3::prelude::*;
2323

24-
#[pyclass(frozen, name = "MetricsSet", module = "datafusion")]
24+
#[pyclass(from_py_object, frozen, name = "MetricsSet", module = "datafusion")]
2525
#[derive(Debug, Clone)]
2626
pub struct PyMetricsSet {
2727
metrics: MetricsSet,
@@ -71,7 +71,7 @@ impl PyMetricsSet {
7171
}
7272
}
7373

74-
#[pyclass(frozen, name = "Metric", module = "datafusion")]
74+
#[pyclass(from_py_object, frozen, name = "Metric", module = "datafusion")]
7575
#[derive(Debug, Clone)]
7676
pub struct PyMetric {
7777
metric: Arc<Metric>,

0 commit comments

Comments
 (0)