Skip to content

Document string-to-number coercion for asNumber() in Gremlin semantics - #3647

Merged
spmallette merged 1 commit into
apache:masterfrom
spmallette:tp-docs-asnumber-string-coercion-c118
Sep 11, 2026
Merged

Document string-to-number coercion for asNumber() in Gremlin semantics#3647
spmallette merged 1 commit into
apache:masterfrom
spmallette:tp-docs-asnumber-string-coercion-c118

Conversation

@spmallette

Copy link
Copy Markdown
Contributor

Add a Considerations rule describing how asNumber() parses a string with no type token: integer-valued strings resolve to the smallest of INT, LONG, or BIGINT that fits, and decimal or exponent-notation strings resolve to FLOAT (then DOUBLE or BIGDECIMAL). Also remove a duplicated Modulation/Considerations heading block in the asNumber() section.

Add a Considerations rule describing how asNumber() parses a string with no type token: integer-valued strings resolve to the smallest of INT, LONG, or BIGINT that fits, and decimal or exponent-notation strings resolve to FLOAT (then DOUBLE or BIGDECIMAL). Also remove a duplicated Modulation/Considerations heading block in the asNumber() section.

Assisted-by: Kiro:claude-opus-4.8
@spmallette
spmallette merged commit 80b0089 into apache:master Sep 11, 2026
6 checks passed
@spmallette
spmallette deleted the tp-docs-asnumber-string-coercion-c118 branch September 11, 2026 19:57
@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.70%. Comparing base (a28cd1f) to head (5023c1d).
⚠️ Report is 608 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3647      +/-   ##
============================================
+ Coverage     76.35%   76.70%   +0.34%     
- Complexity    13424    14337     +913     
============================================
  Files          1012     1037      +25     
  Lines         60341    64761    +4420     
  Branches       7075     7695     +620     
============================================
+ Hits          46076    49674    +3598     
- Misses        11548    11995     +447     
- Partials       2717     3092     +375     

☔ 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