diff --git a/crates/polars-plan/src/logical_plan/hive.rs b/crates/polars-plan/src/logical_plan/hive.rs index d95d50907ecf..c22784e505d5 100644 --- a/crates/polars-plan/src/logical_plan/hive.rs +++ b/crates/polars-plan/src/logical_plan/hive.rs @@ -47,6 +47,16 @@ impl HivePartitions { let name = it.next()?; let value = it.next()?; + // Don't see files `foo=1.parquet` as hive partitions. + // So we return globs and paths with extensions. + if value.contains('*') { + return None; + } + let value_path = Path::new(value); + if value_path.extension().is_some() { + return None; + } + // Having multiple '=' doesn't seem like valid hive partition, // continue as url. if it.next().is_some() {