Skip to content

feat(bigtable): enable microsecond timestamps in client - #14057

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

feat(bigtable): enable microsecond timestamps in client#14057
kanchi12P wants to merge 5 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

@kanchi12P
kanchi12P force-pushed the feature-microsecond-timestamps branch from 41eff3e to 49bfa7c Compare August 13, 2026 05:55
@kanchi12P
kanchi12P force-pushed the feature-microsecond-timestamps branch 4 times, most recently from e609c3b to 94f96f0 Compare August 14, 2026 06:49
@mutianf mutianf changed the title feat: enable microsecond timestamps in client feat(bigtable): enable microsecond timestamps in client Aug 17, 2026
public Mutation setCell(
@Nonnull String familyName, @Nonnull ByteString qualifier, @Nonnull ByteString value) {
long timestamp = System.currentTimeMillis() * 1_000;
Instant maxInstant = Instant.now();

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.

sorry, why is it called maxInstant and not just instant?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Renamed maxInstant to now.

- 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
Change-Id: I42a732ca9a82884ccf97afcb734e317b4384455a
@kanchi12P
kanchi12P force-pushed the feature-microsecond-timestamps branch 2 times, most recently from 3f50b5d to 7b5fb89 Compare August 17, 2026 18:24
Change-Id: Iade245d7881798735bfb10598d9d1b4b4db0f4a1
@kanchi12P
kanchi12P force-pushed the feature-microsecond-timestamps branch from 7b5fb89 to 57aa60c Compare August 17, 2026 18:56
…estamps

Change-Id: I934a296af5a401ba02da7b377b3a2ad913a4fc01
@mutianf mutianf added the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 18, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 18, 2026
…bePointWriteCallableTest

Change-Id: I0a719ae140ab3f455e54e0233b26949738d20743
@mutianf mutianf added the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 18, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 18, 2026
@mutianf
mutianf enabled auto-merge (squash) August 18, 2026 15:02
@mutianf mutianf added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 18, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 18, 2026
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.

4 participants