Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@charles-tan
Copy link
Contributor

Relates to #5533

Adds collect method to SCollectionWithSideInput.

@codecov
Copy link

codecov bot commented Apr 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.47%. Comparing base (324867e) to head (e583d9a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5666      +/-   ##
==========================================
+ Coverage   61.31%   61.47%   +0.15%     
==========================================
  Files         314      314              
  Lines       11279    11324      +45     
  Branches      815      801      -14     
==========================================
+ Hits         6916     6961      +45     
  Misses       4363     4363              

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

Comment on lines +37 to +41
trait SideInputDoFnWithResource[T, U, R] extends DoFnWithResource[T, U, R] with NamedFn {
def sideInputContext(c: DoFn[T, U]#ProcessContext, w: BoundedWindow): SideInputContext[T] =
// Workaround for type inference limit
new SideInputContext(c.asInstanceOf[DoFn[T, AnyRef]#ProcessContext], w)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Curious what you think about adding an additional trait here. I couldn't create classes such as MapFnWithWithResource extends DoFnWithResource with SideInputDoFn because SideInputDoFn extends NamedDoFn andDoFnWithResource is not a subclass of NamedDoFn.

Copy link
Contributor

@clairemcginty clairemcginty left a comment

Choose a reason for hiding this comment

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

nice! appreciate the thorough tests!

Copy link
Contributor

@clairemcginty clairemcginty left a comment

Choose a reason for hiding this comment

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

lgtm!

@charles-tan charles-tan merged commit fa9c2c8 into main Apr 9, 2025
12 checks passed
@charles-tan charles-tan deleted the ctan/SCIO-5533/add-collect-to-SCollectionWithSideInput branch April 9, 2025 18:52
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.

3 participants