apache / incubator-graphar

An open source, standard data file format for graph data storage and retrieval.
https://graphar.apache.org/
Apache License 2.0
195 stars 40 forks source link

[Bug][C++]: VertexInfo/EdgeInfo can not save to a URI path #394

Closed acezen closed 3 months ago

acezen commented 3 months ago

Is there an existing issue for this?

Current Behavior

Give a URI path like file:///tmp/person.vertex.yml, save got error:

Failed to save vertex info: Invalid: Expected a local filesystem path, got a URI: 'file:///tmp/person.vertex.yaml'

Expected Behavior

It should be OK to save to a URI path.

Minimal Reproducible Example

auto vertex_info = GraphArchive::CreateVertexInfo("person", 100, {});
auto st = vertex_info->Save("file:///tmp/person.vertex.yml");
if (!st.ok()) {
  std::cout << "Got error: " << st.message() << "\n";
}

Environment

Link to GraphAr Logs

No response

Further Information

No response