You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a TimestampNanosecondArray and write it to CSV.
Read the resulting CSV back and it will be parsed as UTF-8 not TimestampNanosecondType.
Cast the parsed string to TimestampNanosecondType::DATA_TYPE and the value will be off by the local timezone offset.
I think the solution may be as simple as having the CSV writer append the Z suffix to indicate the timestamp is in GMT time, but I'm not sure.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
In essence, it allows for strings indicating local time to be read as timestamps (and not UTF-8)
The round-trip test suggested in this bug confirmed that the value read in is off by the local timezone offset. The same test confirms that round tripping is sound once the writer appends a Z - i.e. writes out the timestamp in UTC.
Describe the bug
Create a
TimestampNanosecondArray
and write it to CSV.Read the resulting CSV back and it will be parsed as
UTF-8
notTimestampNanosecondType
.Cast the parsed string to
TimestampNanosecondType::DATA_TYPE
and the value will be off by the local timezone offset.I think the solution may be as simple as having the CSV writer append the
Z
suffix to indicate the timestamp is in GMT time, but I'm not sure.To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: