[ 
https://issues.apache.org/jira/browse/TINKERPOP-2962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Valentyn Kahamlyk closed TINKERPOP-2962.
----------------------------------------

> 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: structure
>    Affects Versions: 3.5.6
>            Reporter: Jianzhong Liu
>            Assignee: Valentyn Kahamlyk
>            Priority: Critical
>
> 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)

Reply via email to