apache / apache/arrow

[R] `read_csv_arrow()`'s `timestamp_parsers` parameter is a bit light on documentation and doesn't appear to do anything

Open
#33,708 1 comment 0 reactions 1 assignee Claimed by @thisisnic View on GitHub
Component: R Priority: Medium Status: needs champion Type: enhancement
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 18h
Merged PRs (30d)
91

Description

### Describe the bug, including details regarding any error messages, version, and platform.

``` r
library(arrow)
df <- data.frame(time = "2023-01-16 19:47:57")
dst_dir <- tempfile()
dir.create(dst_dir)
dst_file <- file.path(dst_dir, "data.csv")
write.table(df, sep = ",", dst_file, row.names = FALSE, quote = FALSE)

read_csv_arrow(dst_file, timestamp_parsers = c(TimestampParser$create(format = "%m-%d-%y")))
#> time
#> 1 2023-01-16 19:47:57
```

I'm not sure how exactly it's supposed to work, but it appears not to do anything, and neither the docs nor error messages are enough to tell me what I'm supposed to be doing/seeing here.

### Component(s)

R

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.