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

[Python] RecordBatch.from_arrays does not check array types against a passed schema

    XMLWordPrintableJSON

Details

    Description

      Example came from ARROW-6038

      In [4]: pa.RecordBatch.from_arrays([pa.array([])], schema)                                                  
      Out[4]: <pyarrow.lib.RecordBatch at 0x7fc36fa18db8>
      
      In [5]: rb = pa.RecordBatch.from_arrays([pa.array([])], schema)                                             
      
      In [6]: rb                                                                                                  
      Out[6]: <pyarrow.lib.RecordBatch at 0x7fc37d9c69f8>
      
      In [7]: rb.schema                                                                                           
      Out[7]: col: string
      
      In [8]: rb[0]                                                                                               
      Out[8]: 
      <pyarrow.lib.NullArray object at 0x7fc36fa8ce08>
      0 nulls
      
      

      Attachments

        Issue Links

          Activity

            People

              wesm Wes McKinney
              wesm Wes McKinney
              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 - 40m
                  40m