You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Yang Xia (Jira)" <ji...@apache.org> on 2023/09/27 19:52:00 UTC
[jira] [Updated] (TINKERPOP-2962) Exception Handling in Multi-Value Key Scenario for TinkerPop
[ https://issues.apache.org/jira/browse/TINKERPOP-2962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yang Xia updated TINKERPOP-2962:
--------------------------------
Priority: Critical (was: Major)
> 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
> 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)