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


##########
r/R/util.R:
##########
@@ -196,6 +196,18 @@ repeat_value_as_array <- function(object, n) {
 }
 
 handle_csv_read_error <- function(msg, call, schema) {
+  if (grepl("conversion error to null", msg)) {
+    msg <- c(
+      msg,
+      i = paste(
+        "If you have not specified the schema, this error may be due to the 
column type being",
+        "inferred as `null` because the first block of data contained only 
missing values.",
+        "See `?csv_read_options` for how to set a smaller value."

Review Comment:
   ```suggestion
           "See `?csv_read_options` for how to set a smaller value or specify a 
schema if you know the correct types."
   ```



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