Description
We currently coerce TraversalExplanation to Map which works well for GLVs but doesn't work so well for Java itself where GraphSON deserialization requires a symmetrical derser operation.
Leads to errors like:
org.apache.tinkerpop.shaded.jackson.databind.JsonMappingException: Could not deserialize the JSON value as required. Nested exception: org.apache.tinkerpop.shaded.jackson.databind.JsonMappingException: Could not deserialize the JSON value as required. Nested exception: org.apache.tinkerpop.shaded.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "@type" (class org.apache.tinkerpop.gremlin.process.traversal.util.TraversalExplanation), not marked as ignorable (one known property: "strategyTraversals"]) at [Source: (byte[])"{"requestId":"0bcc54dc-87a0-408b-abe0-35678333827e","status":{"message":"","code":200,"attributes":{"@type":"g:Map","@value":["host","/127.0.0.1:50299"]}},"result":{"data":{"@type":"g:List","@value":[{"@type":"g:TraversalExplanation","@value":{"@type":"g:Map","@value":["original",{"@type":"g:List","@value":["GraphStep(vertex,[])"]},"intermediate",{"@type":"g:List","@value":[{"@type":"g:Map","@value":["traversal",{"@type":"g:List","@value":["GraphStep(vertex,[])"]},"strategy","ConnectiveStrategy""[truncated 2707 bytes]; line: 1, column: 254] (through reference chain: org.apache.tinkerpop.gremlin.process.traversal.util.TraversalExplanation["@type"]) at [Source: (byte[])"{"requestId":"0bcc54dc-87a0-408b-abe0-35678333827e","status":{"message":"","code":200,"attributes":{"@type":"g:Map","@value":["host","/127.0.0.1:50299"]}},"result":{"data":{"@type":"g:List","@value":[{"@type":"g:TraversalExplanation","@value":{"@type":"g:Map","@value":["original",{"@type":"g:List","@value":["GraphStep(vertex,[])"]},"intermediate",{"@type":"g:List","@value":[{"@type":"g:Map","@value":["traversal",{"@type":"g:List","@value":["GraphStep(vertex,[])"]},"strategy","ConnectiveStrategy""[truncated 2707 bytes]; line: 1, column: 253] at [Source: (byte[])"{"requestId":"0bcc54dc-87a0-408b-abe0-35678333827e","status":{"message":"","code":200,"attributes":{"@type":"g:Map","@value":["host","/127.0.0.1:50299"]}},"result":{"data":{"@type":"g:List","@value":[{"@type":"g:TraversalExplanation","@value":{"@type":"g:Map","@value":["original",{"@type":"g:List","@value":["GraphStep(vertex,[])"]},"intermediate",{"@type":"g:List","@value":[{"@type":"g:Map","@value":["traversal",{"@type":"g:List","@value":["GraphStep(vertex,[])"]},"strategy","ConnectiveStrategy""[truncated 2707 bytes]; line: 1, column: 253] (through reference chain: java.util.LinkedHashMap["result"]->java.util.LinkedHashMap["data"])
Attachments
Issue Links
- links to