Skip to content

Commit

Permalink
fixing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglei1949 committed Jun 13, 2024
1 parent fb6c702 commit 77f2bb0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
3 changes: 2 additions & 1 deletion flex/engines/http_server/service/hqps_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ bool HQPSService::start_compiler_subprocess(
std::stringstream ss;
ss << "java -cp " << interactive_class_path;
if (!graph_schema_path.empty()) {
ss << " -Dgraph.schema=" << graph_schema_path;
ss << " -Dgraph.schema=http://localhost:" << service_config_.admin_port
<< "/v1/service/status";
}
ss << " " << COMPILER_SERVER_CLASS_NAME;
ss << " " << service_config_.engine_config_path;
Expand Down
10 changes: 10 additions & 0 deletions flex/storages/metadata/graph_meta_store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,11 @@ CreateGraphMetaRequest CreateGraphMetaRequest::FromJson(
} else {
request.creation_time = GetCurrentTimeStamp();
}
if (json.contains("stored_procedures")) {
for (auto& plugin : json["stored_procedures"]) {
request.plugin_metas.push_back(PluginMeta::FromJson(plugin));
}
}
return request;
}

Expand All @@ -351,6 +356,11 @@ std::string CreateGraphMetaRequest::ToString() const {
json["data_update_time"] = 0;
}
json["creation_time"] = creation_time;
json["stored_procedures"] = nlohmann::json::array();
for (auto& plugin_meta : plugin_metas) {
json["stored_procedures"].push_back(
nlohmann::json::parse(plugin_meta.ToJson()));
}
return json.dump();
}

Expand Down
2 changes: 2 additions & 0 deletions flex/storages/metadata/graph_meta_store.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ struct CreateGraphMetaRequest {
std::optional<uint64_t> data_update_time;
int64_t creation_time;

std::vector<PluginMeta> plugin_metas;

static CreateGraphMetaRequest FromJson(const std::string& json_str);

std::string ToString() const;
Expand Down
9 changes: 6 additions & 3 deletions flex/tests/interactive/modern_graph_schema_v0_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ schema:
- property_id: 1
property_name: name
property_type:
primitive_type: DT_STRING
string:
long_text:
- property_id: 2
property_name: age
property_type:
Expand All @@ -39,11 +40,13 @@ schema:
- property_id: 1
property_name: name
property_type:
primitive_type: DT_STRING
string:
long_text:
- property_id: 2
property_name: lang
property_type:
primitive_type: DT_STRING
string:
long_text:
primary_keys:
- id
edge_types:
Expand Down

0 comments on commit 77f2bb0

Please sign in to comment.