mqy opened a new pull request #8967:
URL: https://github.com/apache/arrow/pull/8967


   Two env vars ARROW_TEST_DATA and PARQUET_TEST_DATA are required to be set, 
for running tests,  benchmark.
   
   The major usage likes this: 
   ```
   let testdata = std::env::var("PARQUET_TEST_DATA").expect("PARQUET_TEST_DATA 
not defined"); 
   ```
   
   Some codes gets project root dir by appending relative dir "../../" to 
current dir.
   
   I'm thinking that, it would be better to add several public utility 
functions for getting test data dir. 
   
   Basic design is:
   
   - If env is defined  and the value points to existing dir, then we get it;
   - Else: get project root dir by search "rust" in current dir's parent, then 
join relative data dir.


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

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


Reply via email to