[Bug] huge-client failed to write attributes of Blob type
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start with the reported path in GraphManager.attachProperties and GraphElement.property, then reproduce the addVertex example using a Blob property created through schema.propertyKey(...).asBlob(). The work is done when the example no longer raises Invalid property value type and the Blob attribute is written successfully.
Written by the indexing model from the issue text.
Description
Bug Type (问题类型)
None
Before submit
- I had searched in the issues and found no similar issues.
Environment (环境信息)
- Server Version: v1.0.0
- Toolchain Version: v1.0.0
- Data Size: xx vertices, xx edges
Expected & Actual behavior (期望与实际表现)
schema:
SchemaManager schema = hugeClient.schema();
schema.propertyKey("testBlob").asBlob().ifNotExist().create();
code example:
GraphManager graph = hugeClient.graph();
Vertex user1 = graph.addVertex(T.LABEL,"USER", T.ID,"user_1",
"testBlob", Blob.wrap(s.getBytes()));
error message:
java.lang.IllegalArgumentException: Invalid property value type: 'class org.apache.hugegraph.util.Blob'
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:164)
at org.apache.hugegraph.util.E.checkArgument(E.java:52)
at org.apache.hugegraph.structure.GraphElement.property(GraphElement.java:77)
at org.apache.hugegraph.structure.graph.Vertex.property(Vertex.java:67)
at org.apache.hugegraph.structure.graph.Vertex.property(Vertex.java:29)
at org.apache.hugegraph.driver.GraphManager.attachProperties(GraphManager.java:469)
at org.apache.hugegraph.driver.GraphManager.addVertex(GraphManager.java:71);
cause of error:
there is no Blob type in the verified class
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response
- Dominant language
- Java
- Stars
- 121
- Forks
- 125
- Avg merge
- 8d 14h
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/hugegraph-toolchain
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
apache/hugegraph-toolchain#772 ·
-
client enhancement help wanted loader tools
Difficulty 5/5 Over a week Newbie friendliness 25/100
apache/hugegraph-toolchain#748 · 1 comment · 1 reaction ·
-
bug hubble
Difficulty 4/5 3-5 days Newbie friendliness 35/100
apache/hugegraph-toolchain#722 · 1 comment ·
-
apache/hugegraph-toolchain#720 · 1 comment · 1 reaction · 1 assignee ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
apache/hugegraph-toolchain#721 · 3 comments ·
All issues in apache/hugegraph-toolchain
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100