Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for configuring timestamp serialization format #585

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

mwylde
Copy link
Member

@mwylde mwylde commented Apr 5, 2024

This re-adds support for controlling how timestamps are serialized in JSON via the json.timestamp_format option on tables. The heavy-lifting is done by this change in our arrow-json fork: ArroyoSystems/arrow-rs#3.

I've also exposed the ability to set explicit_nulls in the serializer and have enabled that, getting us back to the behavior in 0.9.

For JSON deserialization, the format of the data and the timestamp precision controls how timestamp fields are handled—e.g., a number in a TIMESTAMP(3) field will be interpreted as unix millis, while a string in any timestamp precision will be interpreted as a RFC3339 value.

I've also validated that alternate precisions are correctly supported when used as event_time fields.

@mwylde mwylde merged commit eed8a2e into master Apr 9, 2024
6 checks passed
@mwylde mwylde deleted the timestamp_ser branch April 9, 2024 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants