Skip to content

Clarify that sum(local) also accepts a scalar Number - #3612

Merged
spmallette merged 1 commit into
apache:masterfrom
spmallette:tp-docs-sum-local-scalar-number
Aug 5, 2026
Merged

Clarify that sum(local) also accepts a scalar Number#3612
spmallette merged 1 commit into
apache:masterfrom
spmallette:tp-docs-sum-local-scalar-number

Conversation

@spmallette

Copy link
Copy Markdown
Contributor

The sum()-step reference section states that sum(local) "works for Collection-type objects," which reads as though a Collection is the only accepted input.

In practice, sum(local) also accepts a scalar Number and returns that number itself as an identity operation, in addition to summing the numeric elements of a Collection. This change updates the one sentence so both cases are documented:

This works for Collection-type objects (summing their numeric elements) and for scalar Number values (returning the number itself).

The documentation was incomplete rather than incorrect, so this is a small wording fix scoped to the sum()-step section. Verified by rendering the reference docs locally.

The sum()-step reference previously stated that sum(local) works for
Collection-type objects, which implied it only accepts Collections. In
fact sum(local) also accepts a scalar Number and returns that number
itself as an identity operation. Update the wording so readers know both
cases are supported.

Assisted-by: Kiro:claude-opus-4.8
@spmallette
spmallette merged commit 2519d37 into apache:master Aug 5, 2026
28 checks passed
@spmallette
spmallette deleted the tp-docs-sum-local-scalar-number branch August 5, 2026 17:48
@codecov-commenter

codecov-commenter commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.50%. Comparing base (a28cd1f) to head (cc6f1a1).
⚠️ Report is 430 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3612      +/-   ##
============================================
+ Coverage     76.35%   76.50%   +0.14%     
- Complexity    13424    14299     +875     
============================================
  Files          1012     1036      +24     
  Lines         60341    64620    +4279     
  Branches       7075     7664     +589     
============================================
+ Hits          46076    49440    +3364     
- Misses        11548    12087     +539     
- Partials       2717     3093     +376     

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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