Skip to content

adapters: serialize Avro timestamptz as timestamp-micros#6718

Open
xiasongh wants to merge 1 commit into
feldera:mainfrom
xiasongh:shuang/avro-timestamptz
Open

adapters: serialize Avro timestamptz as timestamp-micros#6718
xiasongh wants to merge 1 commit into
feldera:mainfrom
xiasongh:shuang/avro-timestamptz

Conversation

@xiasongh

Copy link
Copy Markdown
Contributor

timestamptz was using default string serialization, but should be using avro's timestamp-micros, which is also the avro datatype feldera generates for timestamptz types

@mythical-fred mythical-fred left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straightforward: timestamp_tz_format was left at the default in the Avro serde config, so timestamptz columns weren't serialized as timestamp-micros. Explicit setter on SqlSerdeConfig + a targeted round-trip test.

APPROVE.

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.

3 participants