Skip to content

Conversation

@spmallette
Copy link
Contributor

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

Fixed javascript translator for uuid. Added testing on date, set, uuid.

VOTE +1

| bar |
| foo |
| zzz |
| uuid[5100808b-62f9-42b7-957e-ed66c30f40d1] |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: It doesn't look like UUID is mentioned in the gremlin-semantics orderability section so it's not immediately obvious if this is where it belongs. Would be best to add clarification in the documentation.

* <li>Makes enums explicit with their proper name</li>
* </ul>
* <p/>
* Assumes use of https://www.npmjs.com/package/uuid library for UUID handling.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we are trying to avoid using npm packages for JavaScript types as it can stop the GLV from being used in the browser.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we were already committed to using uuid though: https://github.com/apache/tinkerpop/blob/3.8.0/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/language/translator/JavascriptTranslateVisitor.java#L222

all i did was use the parse mechanism for a defined uuid. i suppose we could remove the translation wholly? but then a part of Gremlin doesn't work which now has a uuid() function.

@kenhuuu
Copy link
Contributor

kenhuuu commented Feb 6, 2026

VOTE +1, pending nits. I only did a quick overview of the gremlin-go section as I don't really know that language well, would be great is someone else could review that section more closely.

Fixed javascript translator for uuid. Added testing on date, set, uuid.
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