Skip to content

Commit 696a42d

Browse files
committed
Add assert that planner is not overwritten
1 parent 556690f commit 696a42d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎datafusion/datasource-parquet/src/opener.rs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,11 @@ impl Future for ParquetOpenFuture {
459459
// Clear `pending_io` before handling the result so an error
460460
// cannot leave both continuation paths populated.
461461
self.pending_io = None;
462+
if self.planner.is_some() {
463+
return Poll::Ready(internal_err!(
464+
"ParquetOpenFuture does not support concurrent planners"
465+
));
466+
}
462467
self.planner = Some(maybe_planner?);
463468
}
464469

0 commit comments

Comments
 (0)