Jianzhong Liu created TINKERPOP-2962:
----------------------------------------
Summary: Exception Handling in Multi-Value Key Scenario for
TinkerPop
Key: TINKERPOP-2962
URL: https://issues.apache.org/jira/browse/TINKERPOP-2962
Project: TinkerPop
Issue Type: Improvement
Components: gremlint, structure
Reporter: Jianzhong Liu
The current implementation of multi-label behavior in TinkerPop results in
exceptions when a vertex has multiple values for one key. This issue is
evidenced in this code snippet:
[https://github.com/apache/tinkerpop/blob/db3933f229350c83b90a2c83bb7c35b6be35ca0a/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerVertex.java#L72+L77]
Instead of throwing an exception in such cases, it's proposed to change the
approach and initially use the 'properties()' function. Once this function is
called, we should retrieve only the first solution, irrespective of the number
of properties found. This modification aims to improve consistency and
exception handling in TinkerPop's multi-label behavior.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)