Skip to content

Conversation

@mpeddada1
Copy link
Collaborator

@mpeddada1 mpeddada1 commented Jun 30, 2025

This change is Reviewable

This PR does the following:

  • Implements the OrderBy enum.
  • Implements Option type for the enum.
  • Allows it to be set via ReadParams in conn->Read.

Emulates the setup in #6103

@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label Jun 30, 2025
@codecov
Copy link

codecov bot commented Jun 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.93%. Comparing base (81c1d01) to head (c8252b6).
Report is 15 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #15240    +/-   ##
========================================
  Coverage   92.93%   92.93%            
========================================
  Files        2394     2394            
  Lines      215384   215652   +268     
========================================
+ Hits       200163   200417   +254     
- Misses      15221    15235    +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.

@mpeddada1 mpeddada1 marked this pull request as ready for review June 30, 2025 19:35
@mpeddada1 mpeddada1 requested a review from a team as a code owner June 30, 2025 19:35
scotthart
scotthart previously approved these changes Jul 15, 2025
Copy link
Member

@scotthart scotthart left a comment

Choose a reason for hiding this comment

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

Reviewed 10 of 11 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @mpeddada1)

@mpeddada1 mpeddada1 merged commit fbc58d6 into googleapis:main Jul 16, 2025
78 of 79 checks passed
@mpeddada1 mpeddada1 deleted the order_by_enum branch July 16, 2025 15:06
Comment on lines +86 to 87
OrderBy order_by;
LockHint lock_hint;
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems to me that these fields should be absl::optional<>s, and that the user-level options should not have an "unspecified" state. That is, the one way to not specify an OrderBy/LockHint is not to provide one, rather than having a second way by specifying an "unspecified" one.

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.

3 participants