From 493e778cc1b2841f99ba2d9dc00247a98e2c82f4 Mon Sep 17 00:00:00 2001 From: Lawrence Mitchell Date: Wed, 26 Jun 2024 10:26:35 +0000 Subject: [PATCH] Explicitly raise in translation if scan has hive partitioning We were previously silently ignoring this, which is the wrong thing. --- py-polars/src/lazyframe/visitor/nodes.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/py-polars/src/lazyframe/visitor/nodes.rs b/py-polars/src/lazyframe/visitor/nodes.rs index 5cb370231f50..a706b3e253d2 100644 --- a/py-polars/src/lazyframe/visitor/nodes.rs +++ b/py-polars/src/lazyframe/visitor/nodes.rs @@ -291,6 +291,14 @@ pub(crate) fn into_py(py: Python<'_>, plan: &IR) -> PyResult { 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: _,