You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "eitsupi (via GitHub)" <gi...@apache.org> on 2023/02/22 11:06:24 UTC

[GitHub] [arrow] eitsupi commented on issue #34291: [R] Can not parse file

eitsupi commented on issue #34291:
URL: https://github.com/apache/arrow/issues/34291#issuecomment-1439829308

   I am wondering if the following example replicates this problem.
   
   ``` r
   txt <- "a\tb\n1\t\t2"
   readr::read_tsv(I(txt), show_col_types = FALSE)
   #> Warning: One or more parsing issues, call `problems()` on your data frame for details,
   #> e.g.:
   #>   dat <- vroom(...)
   #>   problems(dat)
   #> # A tibble: 1 × 2
   #>       a     b
   #>   <dbl> <dbl>
   #> 1     1     2
   arrow::read_tsv_arrow(charToRaw(txt))
   #> Error:
   #> ! Invalid: CSV parse error: Expected 2 columns, got 3: 1     2
   
   #> Backtrace:
   #>     ▆
   #>  1. └─arrow (local) `<fn>`(file = charToRaw(txt), delim = "\t")
   #>  2.   └─base::tryCatch(...)
   #>  3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   #>  4.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   #>  5.         └─value[[3L]](cond)
   #>  6.           └─arrow:::augment_io_error_msg(e, call, schema = schema)
   #>  7.             └─rlang::abort(msg, call = call)
   ```
   
   <sup>Created on 2023-02-22 with [reprex v2.0.2](https://reprex.tidyverse.org)</sup>
   
   @elgabbas 
   
   > Please note that I read the same data into chunks using `readr` and `vroom` without similar error message.
   
   Did you get an error message like the example above (``Warning: One or more parsing issues, call `problems()` on your data frame for details``) when you read that file by readr or vroom?


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org