thisisnic commented on issue #42012:
URL: https://github.com/apache/arrow/issues/42012#issuecomment-2858224457

   I took a look at this, but it looks like `set()` already exists for Schema; 
see this test I wrote:
   
   ```
   def test_schema_set_field():
       fields = [
           pa.field('foo', pa.int32()),
           pa.field('bar', pa.string()),
           pa.field('baz', pa.list_(pa.int8()))
       ]
       s1 = pa.schema(fields)
   
       s2 = s1.set(0, s1.field(0).with_type(pa.int64()))
       
       assert s2.field(0).type == pa.int64()
       assert s1.field(0).type == pa.int32() 
   ```
   
   Does this mean we don't need to make any changes because it already exists, 
or do we want to create `set_field()` as an alias for `set()`? 
   
   CC @AlenkaF 


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