You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "thisisnic (via GitHub)" <gi...@apache.org> on 2023/04/12 10:57:19 UTC

[GitHub] [arrow] thisisnic commented on issue #35071: [R] Improve interface for working with schemas

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

   Thanks for opening this ticket @fmichonneau, this kind of feedback is invaluable!  Addressing some of your points in order:
   
   ### Getting the schema
   > I'm wondering whether it would make sense to provide a function to extract the schema
   
   We already have the function `schema()` for creating schemas, which makes this trickier, but I agree there's a bit of a tension here between functional patterns and working with objects, which might confuse users. I wonder if there are any examples from other packages that we could use here?
   
   ### Changing the type
   
   > using a dedicated function [to update the schema]
   
   Definitely.
   
   > (this doesn't error but doesn't seem to have any effect)
   
   I think we should error here and add a hint that the user might want to create a new schema instead of trying to update that one.
   
   ### Renaming a field
   
   Agree we should implement the `names<-` method, this should be covered by #35035.
   
   ### Doing logical operations on the data types
   
   Agree we should make this simpler; can you give me an example of why you might want to do this so I have a specific use case in my head?


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org