jorisvandenbossche commented on pull request #11358:
URL: https://github.com/apache/arrow/pull/11358#issuecomment-947688999
> I ignored casting since the user specifies the timezone (or lack thereof)
so presumably it's up to them to do any adjustments they want, and
pyarrow.array doesn't infer timestamps from strings (I thought it did,
apparently not).
What do you mean exactly with "ingored casting"?
Didn't checkout this branch yet, but so currently on master this actually
fails:
```
In [17]: arr = pa.array(["2021-01-01 09:00:00+01:00"])
In [18]: arr.cast(pa.timestamp("s", tz="UTC"))
...
ArrowInvalid: Failed to parse string: '2021-01-01 09:00:00+01:00' as a
scalar of type timestamp[s, tz=UTC]
```
Will this work and take into account the timezone offset?
--
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]