jorisvandenbossche commented on issue #33592:
URL: https://github.com/apache/arrow/issues/33592#issuecomment-2018101751

   Just ran into this as well:
   
   ```
   >>> arr = pa.array([{'x': 1.0, 'y': 2.0}, {'x': 2.0, 'y': 3.0}])
   >>> arr.type
   StructType(struct<x: double, y: double>)
   
   >>> arr.cast(pa.struct([pa.field("x", pa.float64(), nullable=False), 
pa.field("y", pa.float64(), nullable=False)]))
   ...
   ArrowTypeError: cannot cast nullable field to non-nullable field: struct<x: 
double, y: double> struct<x: double not null, y: double not null>
   /home/joris/scipy/repos/arrow/cpp/src/arrow/compute/exec.cc:920  
kernel_->exec(kernel_ctx_, input, &output)
   /home/joris/scipy/repos/arrow/cpp/src/arrow/compute/function.cc:277  
executor->Execute(input, &listener)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to