Skip to content

Commit

Permalink
Correctly handle null columns in Python client
Browse files Browse the repository at this point in the history
  • Loading branch information
cswinter committed Apr 9, 2024
1 parent 00ed155 commit 07e21d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fn column_to_python(py: Python, column: Column) -> PyObject {
Column::Int(xs) => xs.into_py(py),
Column::String(xs) => xs.into_py(py),
Column::Mixed(xs) => PyList::new_bound(py, xs.iter().map(|x| mixed_to_python(py, x))).into_py(py),
Column::Null(n) => n.into_py(py),
Column::Null(n) => PyList::new_bound(py, (0..n).map(|_| None::<()>.into_py(py))).into_py(py),
Column::Xor(xs) => xs.into_py(py),
}
}
Expand Down

0 comments on commit 07e21d2

Please sign in to comment.