Commit e7c81a9d authored by Daniele Dell'Aglio's avatar Daniele Dell'Aglio
Browse files

fixed a wrong condition in the input validation step of Compiler

parent 9b9c184c
......@@ -299,10 +299,10 @@ public final class Compiler {
final String latencyFile = param.get("latency.file.path", "latency-file.csv");
final boolean topologySmall = Boolean.parseBoolean(param.get("topology.small", "true"));
logger.debug("now execute the query {}", queryPath);
logger.debug("Now I will execute the query at {}", queryPath);
final String query;
if(queryPath == null) {
if(queryPath != null) {
final StringBuilder sb = new StringBuilder();
Files.readAllLines(Paths.get(queryPath)).stream().filter(s -> !s.startsWith("#")).forEach(s -> sb.append(s + " "));
query = sb.toString();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment