Skip to content

Commit

Permalink
Explicitly raise in translation if scan has hive partitioning
Browse files Browse the repository at this point in the history
We were previously silently ignoring this, which is the wrong thing.
  • Loading branch information
wence- committed Jun 26, 2024
1 parent 5533c8c commit 493e778
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions py-polars/src/lazyframe/visitor/nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,14 @@ pub(crate) fn into_py(py: Python<'_>, plan: &IR) -> PyResult<PyObject> {
predicate: predicate.into(),
}
.into_py(py),
IR::Scan {
hive_parts: Some(_),
..
} => {
return Err(PyNotImplementedError::new_err(
"scan with hive partitioning",
))
},
IR::Scan {
paths,
file_info: _,
Expand Down

0 comments on commit 493e778

Please sign in to comment.