Skip to content

feat: enable microsecond timestamps in client - #14057

Open
kanchi12P wants to merge 2 commits into
googleapis:mainfrom
kanchi12P:feature-microsecond-timestamps
Open

feat: enable microsecond timestamps in client#14057
kanchi12P wants to merge 2 commits into
googleapis:mainfrom
kanchi12P:feature-microsecond-timestamps

Conversation

@kanchi12P

Copy link
Copy Markdown
  • Enable microsecond timestamp flag in stub settings
  • Plumb timestamp origin to Mutation setCell
  • Skip emulator in mutation-based integration tests to prevent failures

@kanchi12P
kanchi12P requested review from a team as code owners August 12, 2026 20:14

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces microsecond timestamp granularity for Bigtable mutations, including setting the timestamp origin (client auto-generated vs. user-specified) and enabling the microsecond timestamp feature flag in stub settings. Integration tests are updated to skip emulator environments that do not support this granularity, and several protobuf-generated files are regenerated. The review feedback suggests avoiding a potential JDK overflow bug in the year 2262 by directly calculating microseconds since epoch instead of using Instant.until, and recommends adding a @Nonnull annotation to the timestampOrigin parameter for consistency.

@kanchi12P
kanchi12P force-pushed the feature-microsecond-timestamps branch from fe7343e to 41eff3e Compare August 12, 2026 20:17
@kanchi12P

Copy link
Copy Markdown
Author

@mutianf Please review

- Enable microsecond timestamp flag in stub settings
- Plumb timestamp origin to Mutation setCell
- Skip emulator in mutation-based integration tests to prevent failures

Change-Id: Ifd8824a5934f17c9d6a5e0e8cf8b0a0a7343ccb1
@kanchi12P
kanchi12P force-pushed the feature-microsecond-timestamps branch from 41eff3e to 49bfa7c Compare August 13, 2026 05:55
- Use direct epoch arithmetic in Mutation and MutationTest to avoid JDK Instant.until() nanosecond overflow bug
- Add @nonnull annotation to TimestampOrigin parameter in Mutation.setCell()

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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