Skip to content

[TINKERPOP-3236] Expand grammar argument types for coin and pagerank …#3331

Merged
Cole-Greer merged 2 commits into3.7-devfrom
TINKERPOP-3236
Mar 23, 2026
Merged

[TINKERPOP-3236] Expand grammar argument types for coin and pagerank …#3331
Cole-Greer merged 2 commits into3.7-devfrom
TINKERPOP-3236

Conversation

@Cole-Greer
Copy link
Copy Markdown
Contributor

https://issues.apache.org/jira/browse/TINKERPOP-3236

Expanding the grammar to allow any numeric arguments in coin() and pagerank() to better match groovy and other language variants. This is primarily motivated by the TinkerPop 4 JS work, however I would argue this change is justified in all TP versions. I consider this suitable for 3.7-dev as it is loosening an existing constraint, not imposing any new ones.

VOTE +1

@kenhuuu
Copy link
Copy Markdown
Contributor

kenhuuu commented Mar 23, 2026

I was initially hesistant to this, but I think the argument that most languages will automatically convert a number literal into a floating point has convinced me that this is probably the right thing to do.

VOTE +1

@xiazcy
Copy link
Copy Markdown
Contributor

xiazcy commented Mar 23, 2026

VOTE +1 given the reasoning and added feature test

@Cole-Greer Cole-Greer merged commit e9540e3 into 3.7-dev Mar 23, 2026
48 checks passed
@Cole-Greer Cole-Greer deleted the TINKERPOP-3236 branch March 23, 2026 23:55
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.

3 participants