thisisnic opened a new issue, #34092:
URL: https://github.com/apache/arrow/issues/34092

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   I was putting together an example to diagnose a user error, and got an 
unexpected error message:
   
   ``` r
   library(arrow)
   #> 
   #> Attaching package: 'arrow'
   #> The following object is masked from 'package:utils':
   #> 
   #>     timestamp
   tf <- tempfile()
   dodgy_vals <- "x,y\n0,1\n' ', \n3,4"
   cat(dodgy_vals)
   #> x,y
   #> 0,1
   #> ' ', 
   #> 3,4
   writeLines(dodgy_vals, tf)
   open_csv_dataset(tf, schema = schema(x = int64(), y = int64()))
   #> Error in `check_schema()`:
   #> ! Values in `column_names` must match `schema` field names
   #> ✖ `x` and `y` not present in `column_names`
   
   #> Backtrace:
   #>     ▆
   #>  1. └─arrow (local) `<fn>`(...)
   #>  2.   └─arrow::open_dataset(...)
   #>  3.     └─DatasetFactory$create(...)
   #>  4.       └─FileFormat$create(match.arg(format), ...)
   #>  5.         └─CsvFileFormat$create(schema = schema, ...)
   #>  6.           └─arrow:::check_schema(options[["schema"]], 
options[["read_options"]]$column_names)
   #>  7.             └─rlang::abort(...)
   ```
   
   This may be due to the fact that the `col_names` param has a default value 
of `TRUE`.
   
   
   
   ### Component(s)
   
   R


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