-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] hubble1.5.0 执行创建顶点语句报错Undefined vertex label: '??' #602
Comments
The error "Undefined vertex label: '?'" you're encountering in Hubble 1.5.0 when executing the vertex creation statement, but not when using the HugeGraph Java Client, is likely due to a discrepancy in how vertex labels are handled between these interfaces. In Hubble, like in the Java Client, a vertex label must be predefined in the schema before you can add vertices with that label. The Java Client enforces this by requiring the creation of a vertex label schema before adding vertices, which is why you don't see the error there. To resolve this issue in Hubble 1.5.0, ensure that the vertex label '地点' is defined in the schema before attempting to create a vertex with that label. This step is crucial for Hubble to recognize the label and allow vertex creation without errors. Sources
|
我使用HugeGraph Java Client,执行以下语句是成功的,元数据已经创建好了. GremlinManager gremlin=hugeClient.gremlin();
gremlin.gremlin("g.addV('地点').property(id, '17700').property('name', '海南')").execute(); |
@gudehuang First, please use the apache release toolchain(include hubble) version https://hugegraph.apache.org/docs/download/download/ or u could use docker version (Non-apache versions are no longer maintained) And u could use rest-api to check the data consistency @dosu-bot The possible reason is related to the parsing of Chinese characters by the backend of the Hubble, which appears to have garbled characters. You can also prompt users to use the latest version and provide a minimum reproducible example and steps |
To address the "Undefined vertex label: '?'" error you're encountering in Hubble 1.5.0, it's crucial to ensure that the vertex label '地点' is correctly defined in your graph schema. This error typically occurs if the vertex label hasn't been predefined or there's a mismatch in the label name. Here are the steps to resolve this issue:
For future operations, consider using HugeGraph-Loader for data import tasks, as it supports a wide range of data sources and ensures compatibility with your HugeGraph server. Regularly review your graph schema, check system settings for encoding and locale support, verify compatibility before updates, and monitor logs for potential issues. For detailed steps on schema definition and validation, refer to the HugeGraph documentation and API guides. Sources
|
Bug Type (问题类型)
exception / error (异常报错)
Before submit
Environment (环境信息)
Expected & Actual behavior (期望与实际表现)
执行创建顶点语句,报错 Undefined vertex label: '??'
我使用HugeGraph Java Client 执行同样的语句能成功.
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response
The text was updated successfully, but these errors were encountered: