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

[R] Expand file paths when passing to readers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.15.0
    • R

    Description

      All file paths in R are wrapped in fs::path_abs(), which handles relative paths, but it doesn't expand ~, so this fails:

      > df <- read_parquet("~/Downloads/demofile.parquet")
       Error in io___MemoryMappedFile__Open(fs::path_abs(path), mode) :
         IOError: Failed to open local file '~/Downloads/demofile.parquet', error: No such file or directory
      

      This is fixed by using fs::path_real() instead.

      Should this be properly handled in C++ though? cc pitrou

      Attachments

        Issue Links

          Activity

            People

              npr Neal Richardson
              npr Neal Richardson
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 1h
                  1h