Skip to content

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

@xianjial

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    New issues/Needs triage or review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions