c-thiel opened a new pull request, #27798:
URL: https://github.com/apache/datafusion/pull/27798

   ## Which issue does this PR close?
   
   - Closes #27797.
   
   ## Rationale for this change
   
   `datafusion-common` stores the absolute path of its build folder in every 
build. This makes builds non-reproducible. Details are in the issue.
   
   ## What changes are included in this PR?
   
   - `datafusion-common`: new `test_utils` feature. `get_data_dir` only falls 
back to `CARGO_MANIFEST_DIR` when it is on. The `*_TEST_DATA` environment 
variables work as before.
   - `datafusion`: new `test_utils` feature that turns on 
`datafusion-common/test_utils`. `datafusion-examples` may only depend on 
`datafusion`, so it needs this.
   - The crates whose tests use these helpers turn the feature on in their 
dev-dependencies: core, datasource-avro, datasource-parquet, proto, 
sqllogictest and substrait. `datafusion-examples` is not published, so it turns 
it on in its normal dependencies.
   - `datafusion-common` turns it on for its own tests with a self 
dev-dependency (`path = "."`). `cargo package` removes this from the published 
manifest.
   
   ## What is the testing strategy for this PR?
   
   No new tests.
   
   ## Are there any user-facing changes?
   
   New cargo features: `datafusion-common/test_utils` and 
`datafusion/test_utils`.
   
   If you build from a DataFusion git checkout and call `get_data_dir` or 
`*_test_data()` without the environment variables, you now need `test_utils`. 
Nothing changes for crates.io users, because the fallback never worked for them.


-- 
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