This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new d68b8009e4 Minor: Deprecate unused `PartitionedFileStream` (#20869)
d68b8009e4 is described below

commit d68b8009e491323bfe0629f9f76d018b8b91a257
Author: Andrew Lamb <[email protected]>
AuthorDate: Wed Mar 11 14:49:50 2026 -0400

    Minor: Deprecate unused `PartitionedFileStream` (#20869)
    
    ## Which issue does this PR close?
    
    N/A
    
    ## Rationale for this change
    
    I ran across this unused type, so let's deprecate it so it is clear it
    is actually unused
    
    ## What changes are included in this PR?
    
    1. Deprecate type
    
    ## Are these changes tested?
    
    By CI
    ## Are there any user-facing changes?
    
    <!--
    If there are user-facing changes then we may require documentation to be
    updated before approving the PR.
    -->
    
    <!--
    If there are any breaking changes to public APIs, please add the `api
    change` label.
    -->
---
 datafusion/core/src/datasource/listing/mod.rs | 7 ++++---
 datafusion/datasource/src/mod.rs              | 4 ++++
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/datafusion/core/src/datasource/listing/mod.rs 
b/datafusion/core/src/datasource/listing/mod.rs
index c206566a65..85dee3f91c 100644
--- a/datafusion/core/src/datasource/listing/mod.rs
+++ b/datafusion/core/src/datasource/listing/mod.rs
@@ -21,7 +21,8 @@
 mod table;
 pub use datafusion_catalog_listing::helpers;
 pub use datafusion_catalog_listing::{ListingOptions, ListingTable, 
ListingTableConfig};
-pub use datafusion_datasource::{
-    FileRange, ListingTableUrl, PartitionedFile, PartitionedFileStream,
-};
+// Keep for backwards compatibility until removed
+#[expect(deprecated)]
+pub use datafusion_datasource::PartitionedFileStream;
+pub use datafusion_datasource::{FileRange, ListingTableUrl, PartitionedFile};
 pub use table::ListingTableConfigExt;
diff --git a/datafusion/datasource/src/mod.rs b/datafusion/datasource/src/mod.rs
index d19d20ec1f..bcc4627050 100644
--- a/datafusion/datasource/src/mod.rs
+++ b/datafusion/datasource/src/mod.rs
@@ -71,6 +71,10 @@ use std::pin::Pin;
 use std::sync::Arc;
 
 /// Stream of files get listed from object store
+#[deprecated(
+    since = "54.0.0",
+    note = "This type is unused and will be removed in a future release"
+)]
 pub type PartitionedFileStream =
     Pin<Box<dyn Stream<Item = Result<PartitionedFile>> + Send + Sync + 
'static>>;
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to