Skip to content

Clarify product() step semantics for cardinality, ordering, and empty… - #3644

Merged
spmallette merged 1 commit into
apache:masterfrom
spmallette:tp-docs-product-step-semantics-120
Sep 11, 2026
Merged

spmallette merged 1 commit into
apache:masterfrom
spmallette:tp-docs-product-step-semantics-120

Conversation

@spmallette

Copy link
Copy Markdown
Contributor

… input

Expand the product() considerations in the Gremlin semantics document to specify the cartesian product cardinality and the row-major order in which pairs are emitted, that duplicate elements are preserved, and that an empty operand yields a single empty list rather than no result or an error. Also clarify that only a non-iterable incoming traverser or resolved argument raises an error, while a null appearing as a member of an otherwise valid list is a legal element.

… input

Expand the product() considerations in the Gremlin semantics document to
specify the cartesian product cardinality and the row-major order in which
pairs are emitted, that duplicate elements are preserved, and that an empty
operand yields a single empty list rather than no result or an error. Also
clarify that only a non-iterable incoming traverser or resolved argument
raises an error, while a null appearing as a member of an otherwise valid
list is a legal element.

Assisted-by: Kiro:claude-opus-4.8
@spmallette
spmallette merged commit 2aa0725 into apache:master Sep 11, 2026
6 checks passed
@spmallette
spmallette deleted the tp-docs-product-step-semantics-120 branch September 11, 2026 15:11
@codecov-commenter

codecov-commenter commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3644      +/-   ##
============================================
+ Coverage     76.35%   76.72%   +0.36%     
- Complexity    13424    14338     +914     
============================================
  Files          1012     1037      +25     
  Lines         60341    64761    +4420     
  Branches       7075     7695     +620     
============================================
+ Hits          46076    49688    +3612     
- Misses        11548    11976     +428     
- Partials       2717     3097     +380     

☔ 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