diff --git a/src/table/src/table/scan.rs b/src/table/src/table/scan.rs index 7eadec286b5..ca4644424c2 100644 --- a/src/table/src/table/scan.rs +++ b/src/table/src/table/scan.rs @@ -614,6 +614,14 @@ impl RegionScanExec { let ordering = scanner .raw_series_ordering() .map_err(|e| DataFusionError::External(Box::new(e)))?; + // A scan's planned ordering is a guarantee its own partitions keep. Interleaved is a + // transport annotation for fragments several producers contribute; it is not something a + // single scanner can promise, so a scan that planned it is refused here. + if ordering == SeriesOrdering::Interleaved { + return Err(DataFusionError::Plan( + "a scan cannot plan interleaved raw series ordering".into(), + )); + } let arrow_schema = raw_series_frame_schema_with_ordering(&schema, &label_source, ordering)?; let partition_count = scanner.properties().num_partitions().max(1); let properties = Arc::new(PlanProperties::new(