Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wjones127 committed Feb 26, 2022
1 parent fd7e0a9 commit 9d8a209
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use deltalake::partitions::PartitionFilter;
use deltalake::storage;
use deltalake::{arrow, StorageBackend};
use pyo3::create_exception;
use pyo3::exceptions::{PyAssertionError, PyException};
use pyo3::exceptions::PyException;
use pyo3::prelude::*;
use pyo3::types::{PyBytes, PyTuple, PyType};
use std::collections::HashMap;
Expand Down Expand Up @@ -310,10 +310,10 @@ fn filestats_to_expression<'py>(

for (column, value) in partitions_values.iter() {
if let Some(value) = value {
// TODO: value is a string, but needs to be parsed into appropriate type
// value is a string, but needs to be parsed into appropriate type
let column_type = schema
.field_with_name(column)
.map_err(|_| PyAssertionError::new_err("Partition column not found in schema"))?
.map_err(|_| PyDeltaTableError::new_err("Partition column not found in schema"))?
.data_type()
.to_pyarrow(py)?;
// pa.scalar(value).cast(type)
Expand Down

0 comments on commit 9d8a209

Please sign in to comment.