kosiew opened a new issue, #17066:
URL: https://github.com/apache/datafusion/issues/17066

   **Summary:**
   To simplify the developer experience for downstream users of DataFusion and 
promote API consistency, we propose re-exporting the `object_store` crate from 
DataFusion, similar to the existing re-export of the `arrow` crate.
   
   **Problem Statement:**
   Currently, downstream crates that rely on `DataFusionError::ObjectStore` (or 
other exposed types from the `object_store` crate) must manually add 
`object_store` to their own `Cargo.toml`. This introduces unnecessary friction 
and potential for version mismatches, since `object_store` is already a 
transitive dependency of DataFusion.
   
   **Justification:**
   
   * `object_store::Error` is wrapped directly in 
`DataFusionError::ObjectStore`, making `object_store` effectively part of 
DataFusion's public API.
   * Downstream crates often need to import types such as `ObjectStoreError`, 
`ObjectStoreUrl`, etc.
   * Re-exporting the crate would allow users to write:
   
     ```rust
     use datafusion::object_store::ObjectStoreError;
     ```
   
     instead of having to explicitly add and manage `object_store` as a 
separate dependency.
   
   **Proposed Solution:**
   In `datafusion/common/src/lib.rs`, add:
   
   ```rust
   /// Reexport object_store crate
   pub use object_store;
   ```
   
   **Benefits:**
   
   * Reduces friction for DataFusion users
   * Improves discoverability and consistency of the public API
   * Aligns with existing pattern used for `arrow` crate
   
   **Alternatives Considered:**
   
   * Documenting that users must manually add `object_store` — this adds burden 
on users and goes against the ergonomics DataFusion aims to provide.
   
   Proposed 
[here](https://github.com/apache/datafusion/issues/16805#issuecomment-3141407372)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to