nealrichardson commented on issue #35035: URL: https://github.com/apache/arrow/issues/35035#issuecomment-1503577443
There is a `Schema->WithNames()` method you could add bindings for: https://github.com/apache/arrow/blob/main/cpp/src/arrow/type.h#L2003 Note that the C++ function doesn't seem to preserve schema metadata: https://github.com/apache/arrow/blob/main/cpp/src/arrow/type.cc#L1741-L1754 So you will either need to modify the function there to forward the metadata, or handle it yourself. (And for `metadata$r`, you may want to update column names referenced in that to point to the new names, so it may just be something to handle on the R side anyway.) -- 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]
