导入自建数据集的边数据失败 #3209
导入自建数据集的边数据失败
#3209
-
根据文档中的载图导入本地数据(节点.csv和边.csv)时,节点文件能够成功导入,导入边文件时报错,错误信息如下: graph = sess.g()
# graph = graph.add_vertices(".data/stone_story/data/stone_story_node.csv", label="name")
edges_sets = pd.read_csv("./stone_story/data/stone_story_edges.csv")
graph = graph.add_edges(edges_sets, src_label="head", dst_label="tail", properties=["relation"]) |
Beta Was this translation helpful? Give feedback.
Answered by
siyuan0322
Sep 12, 2023
Replies: 1 comment 2 replies
-
具体报错信息如下: graphscope.framework.errors.AnalyticalEngineInternalError: /tmp/gs-local-deps/v6d-0.16.4/modules/graph/utils/table_shuffler.cc:950: ShuffleTableByOffsetLists -> Assertion failed: Failed to fetch a batch from the table pipeline: vineyard::ConvertToArrowType<oid_t>::TypeValue()->Equals(array->type()): OID_T 'int64' is not same with arrow::Column(large_string)
boost::leaf::result<std::shared_ptr<arrow::Table> > vineyard::ShufflePropertyVertexTable<vineyard::HashPartitioner<long> >(grape::CommSpec const&, vineyard::HashPartitioner<long> const&, std::shared_ptr<vineyard::ITablePipeline> const&) + 0x396
boost::leaf::result<std::map<std::string, std::shared_ptr<arrow::Table>, std::less<std::string>, std::allocator<std::pair<std::string const, std::shared_ptr<arrow::Table> > > > > vineyard::BuildVertexTableFromEdges<vineyard::HashPartitioner<long> >(grape::CommSpec const&, vineyard::HashPartitioner<long> const&, std::vector<vineyard::InputTable, std::allocator<vineyard::InputTable> > const&, std::map<std::string, int, std::less<std::string>, std::allocator<std::pair<std::str ... [truncated] |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
因为你的点文件,默认用的 id (int64) 做的主键类型。但是边文件的src和dst是string。
你需要这样,
graph = sess.g(oid_type='str')
然后要么把点文件的name挪到第一列,要么指定主键为name列