Skip to content

Conversation

@mzabaluev
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

Enable an alternative representation of UTC timestamp data types with the "UTC" timezone ID, which is useful for interoperability with applications preferring that form.

What changes are included in this PR?

In the ReaderBuilder API, add a new method with_tz that allows users to specify the timezone ID for Avro logical types that represent UTC timestamps. The choices are between "+00:00" and "UTC" and can be selected by the new Tz enumeration.

Are these changes tested?

Added unit tests to verify the representation with different Tz parameter values.

Are there any user-facing changes?

A new with_tz method is added to arrow_avro::reader::Builder.

In the ReaderBuilder API, add a new method `with_tz` that allows users
to specify the timezone ID for Avro logical types that represent
UTC timestamps. The choices are between "+00:00" and "UTC"
and can be selected by the new Tz enumeration.
@github-actions github-actions bot added arrow Changes to the arrow crate arrow-avro arrow-avro crate labels Jan 27, 2026
@EmilyMatt
Copy link

This makes more sense in my opinion than using "+00:00" exclusively

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate arrow-avro arrow-avro crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configurable Arrow representation of UTC timestamps for Avro reader

2 participants