You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Guillem LEFAIT (JIRA)" <ji...@apache.org> on 2016/11/09 16:33:58 UTC

[jira] [Commented] (SPARK-1153) Generalize VertexId in GraphX so that UUIDs can be used as vertex IDs.

    [ https://issues.apache.org/jira/browse/SPARK-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15651367#comment-15651367 ] 

Guillem LEFAIT commented on SPARK-1153:
---------------------------------------

Hi Nicholas, we got the same needs here, and we delayed a fix until today where we found that collisions reach an arbitrary (low) level.
As JJ Zhang said, I'm not confortable with a solution that produces everyday a new order (and consequently a new ID) but keeping a dictionnary of key/value seems costly given the number of data we're dealing with.

Have you got a chance to make some experiments on the best way to solve this problem ? 

> Generalize VertexId in GraphX so that UUIDs can be used as vertex IDs.
> ----------------------------------------------------------------------
>
>                 Key: SPARK-1153
>                 URL: https://issues.apache.org/jira/browse/SPARK-1153
>             Project: Spark
>          Issue Type: Improvement
>          Components: GraphX
>    Affects Versions: 0.9.0
>            Reporter: Deepak Nulu
>
> Currently, {{VertexId}} is a type-synonym for {{Long}}. I would like to be able to use {{UUID}} as the vertex ID type because the data I want to process with GraphX uses that type for its primay-keys. Others might have a different type for their primary-keys. Generalizing {{VertexId}} (with a type class) will help in such cases.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org