dragonknightk opened a new pull request, #155:
URL: https://github.com/apache/datafusion-iceberg/pull/155

   Closes #136.
   
   ## Rationale for this change
   
   `iceberg-datafusion` depended on `datafusion` with its default features, 
which include `sql`, although the library never uses SQL. Cargo unifies 
features across a build, so every project that depends on `iceberg-datafusion` 
also gets `sql`.
   
   That breaks projects that build DataFusion without `sql`. With `sql` on, 
`DataFusionError` gains a `SQL` variant, so a `match` that lists every variant 
no longer compiles.
   
   ## What changes are included in this PR?
   
   The workspace now declares `datafusion` with `default-features = false`, and 
the library enables no extra features. The crates that need more ask for it 
themselves:
   
   - `iceberg-datafusion-test-tools` enables `sql` (its harness calls 
`SessionContext::sql`) and `parquet` (it uses the Parquet re-export).
   - The library enables `parquet` and `sql` for its own tests as a 
dev-dependency only, so they are not part of a downstream build.
   
   ## Are these changes tested?
   
   This only changes manifests, so there is no new test. `cargo test -p 
iceberg-datafusion` still passes.
   
   A small downstream crate (not part of this PR) builds `datafusion-common` 
without `sql` and matches every `DataFusionError` variant. Before this change 
it fails with a non-exhaustive match on `SQL`. After it, it compiles. `cargo 
tree -e normal,features -i datafusion-common -p iceberg-datafusion` no longer 
lists `sql`.
   
   ## Are there any user-facing changes?
   
   Yes. `iceberg-datafusion` no longer turns on any DataFusion default feature 
(`sql`, `parquet`, compression codecs, and so on) for downstream builds. A 
project that relied on it for one of them must enable that feature on its own 
`datafusion` dependency.
   
   ## AI Disclosure
   
   Human-led contribution. Grok Bot, working for dragonknightk, assisted with 
this change, including the code, tests, and description. All submitted content 
was reviewed by a human before submission.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to