Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impl(spanner): do Uuid to/from string conversions using absl::uint128 #15057

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

devbww
Copy link
Contributor

@devbww devbww commented Mar 28, 2025

Instead of processing the high and low 64 bits of the Uuid separately, just use the 128-bit value directly.

Also simplify the Uuid tests.

Fixes #15043.


This change is Reviewable

Instead of processing the high and low 64 bits of the Uuid separately,
just use the 128-bit value directly.

Also simplify the Uuid tests.

Fixes googleapis#15043.
@devbww devbww requested a review from a team as a code owner March 28, 2025 23:51
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label Mar 28, 2025
@scotthart
Copy link
Member

/gcbrun

Copy link

codecov bot commented Mar 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.90%. Comparing base (4d243d4) to head (9c8e52e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #15057   +/-   ##
=======================================
  Coverage   92.90%   92.90%           
=======================================
  Files        2354     2354           
  Lines      210374   210366    -8     
=======================================
+ Hits       195443   195449    +6     
+ Misses      14931    14917   -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

It looks like the cmake-oldest-deps build is old enough to not support
the deduced-type `%v` specifier.
@scotthart
Copy link
Member

/gcbrun

@devbww devbww deployed to external March 31, 2025 18:55 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the Spanner API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spanner: refactor Uuid to and from string implementations to obviate splitting into two uint64_ts
2 participants