nebula-python 扫出来的ScanEdge结果没有value属性

  • nebula 版本:重新确认了下是1.2.1
  • 部署方式:分布式
  • 是否为线上版本:Y
  • 问题的具体描述
    在根据Github上提供的实例尝试使用nebula-python,根据nebula版本pip install了1.1.0,但是scan_edge的时候得到的结果里没有value属性 :sob:
    另外尝试了scan_vertex是正常的,想问下各位大佬可能是哪个地方出问题了呀?
meta_client = MetaClient([(host_ip, host_port)], 10000, 3)
code =  meta_client.connect()
storage_client = StorageClient(meta_client, 10000, 3)
scan_edge_processor = ScanEdgeProcessor(meta_client)
scan_vertex_processor = ScanVertexProcessor(meta_client)
all_cols = False
return_edge_cols = {"relation": ["a_id", "b_id", "degree"]}
return_vertex_cols = {"user": ["userid", "username"]}
scan_edge_response_iterator = storage_client.scan_edge(space_name, return_edge_cols, all_cols, 100, 0, sys.maxsize)
scan_vertex_response_iterator = storage_client.scan_vertex(space_name, return_vertex_cols, all_cols, 100, 0, sys.maxsize)
print(scan_edge_response_iterator.next().edge_data[0])
print(scan_vertex_response_iterator.next().vertex_data[0])
ScanEdge(
    src=30,
    type=19,
    dst=0)
ScanVertex(
    vertexId=147,
    tagId=15,
    value=b'\x00...\x00')

生产环境在用 nebula 么?没有的话用最新版的 v3.4.0 吧,你的版本截图不对, nebula 是没有 1.2.7 版本的。

是在生产环境用的qwq,确认了下版本号是1.2.1

:melting_face: 1.x 版本基本上不维护了。你们咋还在用这个版本呢。可以找个时间测试下新版本,升级下吧。我找研发给你看看 1.2 的问题。

嗯嗯多谢~

1.x太久远的版本了… 要不你自己调试下吧

1 个赞

估计是下标没对齐之类的(https://github.com/vesoft-inc/nebula-python/pull/219 ),可以用 pdb 追一下看看哈

2 个赞

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。