apache/incubator-hugegraph-toolchain

[Bug] huge-client failed to write attributes of Blob type

haohao0103 opened this issue · 0 comments

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:
image

there is no Blob type in the verified class

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response