etiennebacher commented on issue #34965:
URL: https://github.com/apache/arrow/issues/34965#issuecomment-3921778729

   I'm a bit confused on what to do here, the issue in the OP still exists so I 
don't really understand why this would be closed:
   
   ``` r
   packageVersion("arrow")
   #> [1] '23.0.0.1'
   
   file_location <- tempfile(fileext = ".csv")
   
   test <- data.frame(x = 1, x = 2, check.names = FALSE)
   write.csv(test, file_location)
   
   readr::read_csv(file_location)
   #> New names:
   #> Rows: 1 Columns: 3
   #> ── Column specification
   #> ──────────────────────────────────────────────────────── Delimiter: "," 
dbl
   #> (3): ...1, x...2, x...3
   #> ℹ Use `spec()` to retrieve the full column specification for this data. ℹ
   #> Specify the column types or set `show_col_types = FALSE` to quiet this 
message.
   #> • `` -> `...1`
   #> • `x` -> `x...2`
   #> • `x` -> `x...3`
   #> # A tibble: 1 × 3
   #>    ...1 x...2 x...3
   #>   <dbl> <dbl> <dbl>
   #> 1     1     1     2
   
   arrow::open_csv_dataset(file_location)
   #> Error in `open_dataset()`:
   #> ! Invalid: Error creating dataset. Could not read schema from 
'/tmp/Rtmp3okNQ7/filef78e03c028be9.csv'. Is this a 'csv' file?: Could not open 
CSV input source '/tmp/Rtmp3okNQ7/filef78e03c028be9.csv': Invalid: CSV file 
contained multiple columns named x
   ```


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