Skip to content
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] huge-client failed to write attributes of Blob type #489

Open
1 task done
haohao0103 opened this issue Jul 10, 2023 · 0 comments
Open
1 task done

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

haohao0103 opened this issue Jul 10, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@haohao0103
Copy link
Contributor

haohao0103 commented Jul 10, 2023

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

@haohao0103 haohao0103 added the bug Something isn't working label Jul 10, 2023
@imbajin imbajin changed the title hugeclient Failed to write attributes of Blob type [Bug] huge-client failed to write attributes of Blob type Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant