Skip to content

Does GraphScope only support int type as vertex id? #1747

Answered by sighingnow
parkerzf asked this question in Q&A
Discussion options

You must be logged in to vote

You need speicify the oid_type as string:

def test_loader_with_specified_data_type(
graphscope_session, student_group_e, student_v
):
graph = graphscope_session.g(oid_type="string", generate_eid=False)
graph = graph.add_vertices(
student_v,
"student",
["name", ("lesson_nums", "int"), ("avg_score", "float")],
"student_id",
)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sighingnow
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #1741 on June 21, 2022 13:27.