Skip to content

Conversation

@vamshigv
Copy link
Contributor

@vamshigv vamshigv commented Nov 13, 2023

Change Logs

Fix bug to correct avro logical timestamp conversion to account for local-timestamp (millisecond precision and microsecond precision).

Impact

Spark datasource reads will reflect timestamp types instead of longs for the types fixed.

Risk level (write none, low medium or high below)

Low

Documentation Update

N/A

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@vamshigv
Copy link
Contributor Author

Note to myself: Add tests.

@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@nsivabalan nsivabalan added priority:critical Production degraded; pipelines stalled release-0.14.1 labels Nov 15, 2023
@nsivabalan
Copy link
Contributor

hey @jonvex : can you review the patch

@nsivabalan
Copy link
Contributor

hey @xushiyan : can you take care of landing the patch once Jon approves it.
@vamshigv : once the patch is ready to review, do let Jon know.

Copy link
Contributor

@jonvex jonvex left a comment

Choose a reason for hiding this comment

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

Comment on lines -79 to +80
case _: TimestampMillis | _: TimestampMicros => SchemaType(TimestampType, nullable = false)
case _: TimestampMillis | _: TimestampMicros | _: LocalTimestampMillis | _: LocalTimestampMicros
=> SchemaType(TimestampType, nullable = false)
Copy link
Member

Choose a reason for hiding this comment

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

make sure to extend an existing UT to cover this? or start a new one

@github-actions github-actions bot added the size:XS PR with lines of changes in <= 10 label Feb 26, 2024
Copy link
Contributor

@yihua yihua left a comment

Choose a reason for hiding this comment

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

@jonvex Is this PR still needed?

Copy link
Contributor

@yihua yihua left a comment

Choose a reason for hiding this comment

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

The local timestamp types are fixed by #13711 . Closing this PR.

@yihua yihua closed this Dec 20, 2025
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Hudi PR Support Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:critical Production degraded; pipelines stalled release-0.14.1 size:XS PR with lines of changes in <= 10

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

6 participants