Skip to content

Clarify difference() step semantics in the provider documentation - #3645

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

Clarify difference() step semantics in the provider documentation#3645
spmallette merged 1 commit into
apache:masterfrom
spmallette:tp-docs-difference-step-semantics

Conversation

@spmallette

Copy link
Copy Markdown
Contributor

Expand the Considerations for the difference() step in gremlin-semantics.asciidoc with language-agnostic behavioral detail. The result is a SET whose iteration order is unspecified and does not preserve the incoming list order, and A-B is directional rather than order-preserving. Membership compares members by both value and type, so numerically equal values of different types are distinct, and a null is a legal list element while a null or non-iterable whole traverser or argument raises an error. It also notes that a traversal supplied as the argument produces the comparison list as a single result.

Expand the Considerations for the difference() step in gremlin-semantics.asciidoc
with language-agnostic behavioral detail. The result is a SET whose iteration
order is unspecified and does not preserve the incoming list order, and A-B is
directional rather than order-preserving. Membership compares members by both
value and type, so numerically equal values of different types are distinct, and
a null is a legal list element while a null or non-iterable whole traverser or
argument raises an error. It also notes that a traversal supplied as the argument
produces the comparison list as a single result.

Assisted-by: Kiro:claude-opus-4.8
@spmallette
spmallette merged commit f638203 into apache:master Sep 11, 2026
6 checks passed
@spmallette
spmallette deleted the tp-docs-difference-step-semantics branch September 11, 2026 15:56
@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 (16db3f6).
⚠️ Report is 600 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3645      +/-   ##
============================================
+ Coverage     76.35%   76.72%   +0.36%     
- Complexity    13424    14339     +915     
============================================
  Files          1012     1037      +25     
  Lines         60341    64761    +4420     
  Branches       7075     7695     +620     
============================================
+ Hits          46076    49689    +3613     
- Misses        11548    11976     +428     
- Partials       2717     3096     +379     

☔ 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