nealrichardson commented on PR #35543: URL: https://github.com/apache/arrow/pull/35543#issuecomment-1545866555
> Yes, but then `schema()` both constructs a schema AND pulls the schema attribute...one function doing more than one thing is also confusing although there's certainly precedent for it in pre-tidyverse R. > Yeah I totally get your concern and this is why I didn't do this before, despite many times typing `schema(ds)` and then remembering that instead I had to type `ds$schema` to get the schema. I'm just not convinced (anymore) that it's less confusing than the status quo, where `getter()` exists for some attributes but not others. > The `as_schema()` method is perhaps more appropriate (and also perhaps easier to remember than "infer" or "extract")? I'm not sure that feels natural in these cases: `as_schema(ds)` feels like I'm converting the Dataset to something else, where what I really want is to access the Schema that the Dataset contains. -- 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]
