Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10967

[Rust] Make env vars ARROW_TEST_DATA and PARQUET_TEST_DATA optional

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0
    • Rust

    Description

      Current state:

      • 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"); 
      • There already exist some codes that tried to assembly the test data directories by appending relative dir to current dir of current running process. 

      So it would be better if 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 try getting the data dir based on: current dir, default relative dir, etc.

       

      Attachments

        Activity

          People

            mqy Qingyou Meng
            mqy Qingyou Meng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 8h
                8h