Skip to content

Conversation

@scottsand-db
Copy link
Collaborator

@scottsand-db scottsand-db commented Jan 24, 2026

🥞 Stacked PR

Use this link to review incremental changes.


Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

ChronoUnit.MICROS.between() internally computes (seconds * 1_000_000_000) / 1000,
where the intermediate nanoseconds value overflows for timestamps beyond ~292
years from epoch. Fix by computing seconds * 1_000_000 directly.

How was this patch tested?

New UTs.

Does this PR introduce any user-facing changes?

No

ChronoUnit.MICROS.between() internally computes (seconds * 1_000_000_000) / 1000,
where the intermediate nanoseconds value overflows for timestamps beyond ~292
years from epoch. Fix by computing seconds * 1_000_000 directly.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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