string -> date32 is not implemented, AFAICT. I agree that a timestamp seems ideal, that way string -> date32 should produce the same result as string -> timestamp -> date32.
A related question: what format would be expected for time32<seconds> <-> string? On Tue, Jul 14, 2020 at 1:19 PM Antoine Pitrou <anto...@python.org> wrote: > > How is the other side (cast string -> date32) implemented? > > I would say, ideally a timestamp is accepted. > > > Le 14/07/2020 à 19:07, Ben Kietzman a écrit : > > When casting (for example) date32 -> string, should the result be the > > digits of the underlying integer value or a timestamp? > > > > For timestamp -> string the format should probably be ISO8601 since that > is > > the format used when casting string -> timestamp (if a different format > is > > used then string -> timestamp -> string will not roundtrip perfectly, > which > > seems counterintuitive). > > >