thisisnic commented on code in PR #49338:
URL: https://github.com/apache/arrow/pull/49338#discussion_r2841105958


##########
r/R/util.R:
##########
@@ -196,6 +196,20 @@ repeat_value_as_array <- function(object, n) {
 }
 
 handle_csv_read_error <- function(msg, call, schema) {
+  # Handle null type inference issue with sparse data
+  if (grepl("conversion error to null", msg)) {
+    msg <- c(
+      msg,
+      i = paste(
+        "Column type was inferred as null because the first block of data",
+        "contained only missing values. See `?csv_read_options` for how to",
+        "set a smaller value."
+      )
+    )
+    abort(msg, call = call)
+  }
+
+  # Handle schema + header row issue

Review Comment:
   ```suggestion
   ```



-- 
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]

Reply via email to