You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Ken Hu (Jira)" <ji...@apache.org> on 2026/02/14 00:02:00 UTC

[jira] [Created] (TINKERPOP-3232) Support deserialization of a set that has a non hashable element

Ken Hu created TINKERPOP-3232:
---------------------------------

             Summary: 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.7.5, 3.8.0
            Reporter: Ken Hu


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)