Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shirly121 committed Jun 13, 2024
1 parent dcf0f8d commit 229d92e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion interactive_engine/compiler/conf/ir.compiler.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pegasus.hosts: localhost:1234
# 1. local file path: file://<absolute path to the local schema file>, i.e. file:///path/to/your/schema.json
# 2. remote http path: http://<host>:<port>/<query>, i.e. http://localhost:8080/schema
# we specifically support reading from a relative path if it is a local file.
graph.meta.schema.uri: ../executor/ir/core/resource/modern_schema.json
graph.schema: ../executor/ir/core/resource/modern_schema.json
graph.store: exp

graph.planner.is.on: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

public class GraphConfig {
public static final Config<String> GRAPH_META_SCHEMA_URI =
Config.stringConfig("graph.meta.schema.uri", ".");
Config.stringConfig("graph.schema", ".");

public static final Config<String> GRAPH_META_STATISTICS_URI =
Config.stringConfig("graph.meta.statistics.uri", "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public class YamlConfigs extends Configs {
return rules;
})
.put(
"graph.meta.schema.uri",
"graph.schema",
(Configs configs) -> {
// if System.properties contains graph.schema, use it
String schema = System.getProperty("graph.meta.schema.uri");
String schema = System.getProperty("graph.schema");
if (schema != null) {
return schema;
}
Expand Down

0 comments on commit 229d92e

Please sign in to comment.