Re: R Date class lost when column used for partitioning

2024-03-01 Thread Andrew Piskorski
On Fri, Mar 01, 2024 at 03:39:54PM -0900, Bryce Mecum wrote: > Try specifying a schema to `open_dataset` with d1 specified as > date32[day]. When I do that, I get the correct type for that field and > the values look correct too. > > schm <- schema(bb) > new_schm <- schm$SetField(6, arrow::field("

Re: R Date class lost when column used for partitioning

2024-03-01 Thread Bryce Mecum
Hi Andrew, thanks for the question. Try specifying a schema to `open_dataset` with d1 specified as date32[day]. When I do that, I get the correct type for that field and the values look correct too. schm <- schema(bb) new_schm <- schm$SetField(6, arrow::field("d1", arrow::date32())) bb <- arrow::