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

[Python] Segmentation Fault when None given to read_table with legacy dataset

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.17.0
    • 5.0.0
    • Python

    Description

      Code Sample (copy-pasteable)

      import pyarrow.parquet as pq
      
      pq.read_table(None)
      

      Description

      The above snippet will produce a Segmentation Fault, which is highly undesirable. The reason I discovered this, was I had a function that was supposed to return a file path, but on my first iteration I forgot to return. Thus, when I ran my module with

      pq.read_table(generate_fp())

      it produced a Segmentation Fault.

      Expected OutputĀ 

      Ideally this will raise an ValueError, indicating to the user that None is an invalid source/file path. In my opinion, this is much more desirable than a violent segfault.

      Attachments

        Issue Links

          Activity

            People

              icook Ian Cook
              chaburkland Charles Burkland
              Votes:
              0 Vote for this issue
              Watchers:
              7 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 - 2h 40m
                  2h 40m