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

[Python] ParquetWriter segfaults in example where passed schema and table schema do not match

    XMLWordPrintableJSON

Details

    Description

      I get a segmentation fault with simply printing a basic table creation from arrays:

       

      import pyarrow as pa
      import pyarrow.parquet as pq
      
      simple_fields = [
          pa.field('POS', pa.uint32()),
          pa.field('desc', pa.string())
      ]
      
      
      simple_schema = pa.schema(simple_fields)
      
      simple_from_array = [pa.Array([1]), pa.Array(['bla'])]
      simple_table = pa.Table.from_arrays(simple_from_array, ['POS', 'desc'])
      print(simple_table)
      

      Attachments

        Issue Links

          Activity

            People

              wesm Wes McKinney
              tiagoantao Tiago Antao
              Votes:
              0 Vote for this issue
              Watchers:
              3 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