nealrichardson commented on a change in pull request #12152:
URL: https://github.com/apache/arrow/pull/12152#discussion_r784885514
##########
File path: r/R/query-engine.R
##########
@@ -22,7 +22,12 @@ do_exec_plan <- function(.data) {
# TODO (ARROW-14289): make the head/tail methods return RBR not Table
if (inherits(tab, "RecordBatchReader")) {
- tab <- tab$read_table()
+ tryCatch(
+ tab <- tab$read_table(),
+ error = function(e) {
+ handle_csv_read_error(e, tab$schema)
Review comment:
I think you want this check higher up, in `collect.arrow_dplyr_query`,
around the `do_exec_plan()` call. It feels fragile and out of place here.
--
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]