Skip to content

Commit 9625820

Browse files
again fix cast_primitive for Node (#363)
1 parent b3ce895 commit 9625820

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nebula3/data/DataObject.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,8 @@ def _cast_node(node: Vertex):
711711
"vid": node.get_id().cast(),
712712
"tags": {
713713
tag_name: {
714-
k: v.cast() for k, v in node.properties(tag_name).items()
714+
k: v.cast_primitive()
715+
for k, v in node.properties(tag_name).items()
715716
}
716717
for tag_name in node.tags()
717718
},
@@ -723,7 +724,7 @@ def _cast_relationship(edge: Edge):
723724
"dst": edge.end_vertex_id().cast(),
724725
"type": edge.edge_name(),
725726
"rank": edge.ranking(),
726-
"props": {k: v.cast() for k, v in edge.properties().items()},
727+
"props": {k: v.cast_primitive() for k, v in edge.properties().items()},
727728
}
728729

729730
def _cast_primitive(raw_value):

0 commit comments

Comments
 (0)