thisisnic commented on issue #34965:
URL: https://github.com/apache/arrow/issues/34965#issuecomment-1505254724
> Is it feasible to implement?
We can absolutely open up a C++ ticket, and see if anyone has time to work
on it.
Another thing which is tangentially related, but may help is #35035 which
would make it easier to rename all fields in a schema in one go. It doesn't
solve the problem but could lead to a faster workaround once you have the
existing schema.
A faster way of extracting the existing schema, would be to use
`readr::read_csv()` which can limit the number of lines to read and works
really quickly, e.g.
```
one_row <- readr::read_csv(file_location, n_max = 1) %>%
arrow_table(as_data_frame = FALSE)
one_row$schema
```
--
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]