Skip to content

Commit 0692a84

Browse files
committed
IcerbergPartitionedScan ignored limit rather than crash
1 parent a8e5b8c commit 0692a84

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

crates/integrations/datafusion/src/table/partitioned.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,8 @@ impl TableProvider for IcebergPartitionedTableProvider {
111111
filters: &[Expr],
112112
limit: Option<usize>,
113113
) -> DFResult<Arc<dyn ExecutionPlan>> {
114-
if limit.is_some() {
115-
return Err(DataFusionError::NotImplemented(
116-
"IcebergPartitionedTableProvider does not support limit pushdown".to_string(),
117-
));
118-
}
114+
// limit is a hint only; DataFusion inserts a GlobalLimitExec above us anyway
115+
let _ = limit;
119116
let scan = self
120117
.scan_without_session(projection.cloned(), filters.to_vec())
121118
.await?;

0 commit comments

Comments
 (0)