Skip to content

Add Collection#bulkCreateOrReplace#284

Merged
suddendust merged 1 commit intohypertrace:mainfrom
suddendust:bulkCreateOrReplace
Apr 7, 2026
Merged

Add Collection#bulkCreateOrReplace#284
suddendust merged 1 commit intohypertrace:mainfrom
suddendust:bulkCreateOrReplace

Conversation

@suddendust
Copy link
Copy Markdown
Contributor

Description

This PR adds support for Collection#bulkCreateOrReplace. This is akin to Collection#bulkUpsert but with createOrReplace semantics. For now, it's only implemented for FlatPostgresCollection.

Testing

Added integration tests.

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

❌ Patch coverage is 76.56250% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.21%. Comparing base (f3bc54c) to head (1579b0e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...documentstore/postgres/FlatPostgresCollection.java 77.77% 12 Missing and 2 partials ⚠️
.../org/hypertrace/core/documentstore/Collection.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #284      +/-   ##
============================================
- Coverage     81.25%   81.21%   -0.05%     
  Complexity     1486     1486              
============================================
  Files           240      240              
  Lines          7176     7240      +64     
  Branches        676      685       +9     
============================================
+ Hits           5831     5880      +49     
- Misses          916      929      +13     
- Partials        429      431       +2     
Flag Coverage Δ
integration 81.21% <76.56%> (-0.05%) ⬇️
unit 54.73% <0.00%> (-0.49%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@suddendust suddendust merged commit 080d894 into hypertrace:main Apr 7, 2026
4 of 6 checks passed
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