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

Consistent implementation for reduce operation #5498

Merged
merged 3 commits into from
Sep 20, 2024

Conversation

RustedBones
Copy link
Contributor

No description provided.

@@ -793,7 +793,7 @@ sealed trait SCollection[T] extends PCollectionWrapper[T] {
val e = ev // defeat closure
in.map(e.toDouble)
.asInstanceOf[SCollection[JDouble]]
.pApply(Mean.globally())
.pApply(Mean.globally().withoutDefaults())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

without that, mean returns NaN for empty collection instead

Base automatically changed from hot-key-api to main September 19, 2024 14:21
@RustedBones RustedBones marked this pull request as ready for review September 19, 2024 14:23
Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.40%. Comparing base (f36016b) to head (399e671).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5498      +/-   ##
==========================================
- Coverage   61.40%   61.40%   -0.01%     
==========================================
  Files         312      312              
  Lines       11101    11106       +5     
  Branches      738      771      +33     
==========================================
+ Hits         6817     6820       +3     
- Misses       4284     4286       +2     

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

@RustedBones RustedBones merged commit 5510c55 into main Sep 20, 2024
12 checks passed
@RustedBones RustedBones deleted the consistent-empty-reduce branch September 20, 2024 07:27
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