[
https://issues.apache.org/jira/browse/TINKERPOP-3232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yang Xia closed TINKERPOP-3232.
-------------------------------
Fix Version/s: 3.7.6
3.8.1
Resolution: Fixed
> Support deserialization of a set that has a non hashable element
> ----------------------------------------------------------------
>
> Key: TINKERPOP-3232
> URL: https://issues.apache.org/jira/browse/TINKERPOP-3232
> Project: TinkerPop
> Issue Type: Improvement
> Components: python
> Affects Versions: 3.8.0, 3.7.5
> Reporter: Ken Hu
> Priority: Blocker
> Fix For: 3.7.6, 3.8.1
>
>
> The set type in Python can only contain hashable types so it can't have
> "container" types that are commonly returned in Gremlin. This causes issues
> when trying to deserialize a Set that does contain these types as the set
> will throw a TypeError.
> Some potential solutions include:
> * Deserializing to list in these cases instead of set
> * Using the HashableDict type from util like what was done for Map
> An example query that can return such an error is:
> {code:java}
> g.V().valueMap().dedup(Scope.local)
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)