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

[Python] Use FileNotFoundError in HadoopFileSystem.open() in Python 3

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.14.1
    • 4.0.0
    • Python

    Description

      When file is absent pyarrow throws 

      ArrowIOError('HDFS file does not exist: ...')
      

      which inherits from IOError and pyarrow.lib.ArrowException, it would be better if that was FileNotFoundError a subclass of IOError for this particular purpose. Also, .errno property is empty (should be 2) so one needs to match by error message to check for particular error.

      P.S. There is no FileNotFoundError in Python 2, but there is .errno property there.

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              Suor Alexander Schepanovski
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 20m
                  1h 20m