Skip to content

[BUG] values() and valueMap() inconsistent result displayed in notebook widget聽#718

Description

@xianjial

Community Note

  • Please use a 馃憤 reaction to provide a +1/vote. This helps the community and maintainers prioritize this request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Describe the bug
I'm testing backslashes in Gremlin querystring and seeing different results displayed in notebook widget when running queries as below

### TinkerPop Console
gremlin> g.addV('test').property(id, '2').property(single, 'configValue', '[{"p1":1,"p2":"a: \\"b\\""}]').next()
==>v[2]
gremlin> g.V().values()
==>[{"p1":1,"p2":"a: \"b\""}]
gremlin> g.V().valueMap()
==>[configValue:[[{"p1":1,"p2":"a: \"b\""}]]]

### Neptune Notebook (see screenshots to understand it better)
g.V().values()
--> [{"p1":1,"p2":"a: \"b\""}]
g.V().valueMap()
--> {'configValue': ['[{"p1":1,"p2":"a: \\"b\\""}]']}

image

%graph_notebook_config
{
  ...
  "gremlin": {
    "traversal_source": "g",
    "username": "",
    "password": "",
    "message_serializer": "graphsonv3"
  },
  ...
}
Same result with `GraphBinaryV1` serializer.

Expected behavior
value() and valueMap() should return same result as TinkerPop console.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions