aws / aws/graph-notebook

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

Open
#718 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
819
Forks
179
PR merge metrics
No merged PRs in 30d

Description

**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](https://github.com/user-attachments/assets/b69f9c54-876b-44dd-9137-7211e1742297)

```
%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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.