图数据节点和边的type字段是否支持中文?
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 553
- PR merge metrics
- No merged PRs in 30d
Description
在使用EulerGenerator转换时,发现在gmeta.node_type_info中取type时,中文好像不受支持,读取json的时候使用了str(node_json['type']),导致出现了keyError错误
[https://github.com/alibaba/euler/blob/master/euler/tools/json2partdat.py](url)
line94:
node_type = self.gmeta.node_type_info[str(node_json['type'])]
line113:
edge_type = self.gmeta.edge_type_info[str(edge_json['type'])]
若type为中文,无法从edge_type_info正确的取出数据,会报错keyError,去掉多余的str转换后正常
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with euler/tools/json2partdat.py, especially the node type lookup around line 94 and edge type lookup around line 113. Run the JSON-to-partition conversion with Chinese node and edge type values, then verify both lookups complete without KeyError and existing type handling remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-engineering
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100