Accumulate MAP type attribute

Hi,

I have an entity

Entity1(PRIMARY_ID id STRING)

Entity2(PRIMARY_ID id STRING, details MAP<STRING, STRING>)

Edge Entity1_RELATED_Entity2

If I declare a SetAccum<Vertex> @entity2 I only get the primary_ids of Entity2. But I also want details attribute of Entity2.

I even tried declaring a TYPEDEF TUPLE <STRING id, MAP<STRING, STRING> details > Entity2Custom, but this fails.

Can someone please help me?

Thanks

Hi Raghav,

It is not possible to see the values of vertex attributes if they are in a SetAccum.

To view the attributes, you would have to assign the values of the SetAccum to a vertex set.

e.g. vertexSet = vertex.@entity2;

Thanks,

Kevin