Skip to content

Commit 246f331

Browse files
committed
fix: add u64 support for config
1 parent 1362c83 commit 246f331

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ fn py_obj_to_scalar_value(py: Python, obj: PyObject) -> ScalarValue {
7070
ScalarValue::Boolean(Some(value))
7171
} else if let Ok(value) = obj.extract::<i64>(py) {
7272
ScalarValue::Int64(Some(value))
73+
} else if let Ok(value) = obj.extract::<u64>(py) {
74+
ScalarValue::UInt64(Some(value))
7375
} else if let Ok(value) = obj.extract::<f64>(py) {
7476
ScalarValue::Float64(Some(value))
7577
} else if let Ok(value) = obj.extract::<String>(py) {

src/expression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use pyo3::{basic::CompareOp, prelude::*};
1919
use std::convert::{From, Into};
2020

2121
use datafusion::arrow::datatypes::DataType;
22-
use datafusion::logical_plan::{col, lit, Expr};
22+
use datafusion_expr::{col, lit, Expr};
2323

2424
use datafusion::scalar::ScalarValue;
2525

0 commit comments

Comments
 (0)