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

[R][Python] Crash when reading empty .feather file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Python, R
    • Ubuntu Server 20.04.3, arrow (R) 5.0.02, pyarrow 3.0.0 (Python), RStudio 1.4.1717, R 4.1.0

    Description

      I get an R Session Error in RStudio Server when I try to read an empty .feather file.

      Error: The previous R session was abnormally terminated due to an unexpected crash. You may have lost workspace data as a result of this crash. 

      Reproduce:

      • Create empty pandas dataframe in Python
      • Write to .feather file with .reset_index(drop=True) and compression="uncompressed"
      • Try to read data in RStudio with arrow::read_feather(path)
      • Error

      I can read dataframes with one or more rows in RStudio.

      I can read the empty dataframe with pandas.read_feather(). This returns an empty pandas dataframe.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              reiniervl Reinier van Linschoten
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: