kshitij12345 opened a new pull request, #14048:
URL: https://github.com/apache/arrow/pull/14048

   ```python
   table = pa.table({'a': [None, 1], 'b': [None, True]})
   new_schema = pa.schema([pa.field("a", "int64", nullable=True), pa.field("b", 
"bool", nullable=False)])
   casted = table.cast(new_schema)
   
   ```
   
   Now leads to
   ```
   RuntimeError: Casting a nullable field 'b' to non-nullable
   ```


-- 
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