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

feat(spanner): add Interval justification #14123

Merged
merged 2 commits into from
May 4, 2024

Conversation

devbww
Copy link
Contributor

@devbww devbww commented May 3, 2024

Add APIs to flow Interval 24-hour offsets into days, and 30-day periods into months. Seeing as "justification" is included in the relational operators, to best way to verify the results is by conversion to a string.

And now that we have JustifyHours(intvl), apply it to the result of Diff(ts1, ts2, tz) as required.


This change is Reviewable

Add APIs to flow Interval 24-hour offsets into days, and 30-day periods
into months.  Seeing as "justification" is included in the relational
operators, to best way to verify the results is by conversion to a
string.

And now that we have `JustifyHours(intvl)`, apply it to the result of
`Diff(ts1, ts2, tz)` as required.
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label May 3, 2024
Copy link

codecov bot commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.23%. Comparing base (4355156) to head (e316dc3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14123      +/-   ##
==========================================
- Coverage   93.78%   93.23%   -0.55%     
==========================================
  Files        2290     2203      -87     
  Lines      199353   188946   -10407     
==========================================
- Hits       186963   176173   -10790     
- Misses      12390    12773     +383     

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

@devbww devbww marked this pull request as ready for review May 4, 2024 02:10
@devbww devbww requested a review from a team as a code owner May 4, 2024 02:10
@devbww devbww merged commit a3488c4 into googleapis:main May 4, 2024
63 checks passed
@devbww devbww deleted the interval-justify branch May 4, 2024 15:39
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.

2 participants