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

[Python] Should OSError be FileNotFoundError?

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.15.0
    • Fix Version/s: 2.0.0
    • Component/s: C++, Python
    • Labels:
      None

      Description

      On the read_table function - if the file is not found, an OSError ("Passed non-file path") is raised:

      import pyarrow.parquet as pq
      pq.read_table('example.parquet')
      

      Should it rather be FileNotFoundError which is more standard in such situations?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vfilimonov Vladimir Filimonov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: