Fix gql behave dropping connection on Memgraph (#1399)

This commit is contained in:
Josipmrden 2023-10-25 10:59:02 +02:00 committed by GitHub
parent 5b91f85161
commit 7ef10dd82a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 2 deletions

View File

@ -189,8 +189,22 @@ class PlanHintsProvider final : public HierarchicalLogicalOperatorVisitor {
bool PostVisit(Apply & /*op*/) override { return true; }
bool PreVisit(LoadCsv & /*unused*/) override { return true; }
bool PostVisit(LoadCsv & /*unused*/) override { return true; }
bool PostVisit(LoadCsv & /*op*/) override { return true; }
bool PreVisit(HashJoin &op) override {
op.left_op_->Accept(*this);
op.right_op_->Accept(*this);
return false;
}
bool PostVisit(HashJoin & /*unused*/) override { return true; }
bool PreVisit(IndexedJoin &op) override {
op.main_branch_->Accept(*this);
op.sub_branch_->Accept(*this);
return false;
}
bool PostVisit(IndexedJoin & /*unused*/) override { return true; }
private:
const SymbolTable &symbol_table_;

View File

@ -2,3 +2,4 @@ ve3/
*.pyc
gql_behave_status.csv
gql_behave_status.html
*.log

View File

@ -102,7 +102,14 @@ class MemgraphRunner:
self.data_directory = tempfile.TemporaryDirectory()
memgraph_binary = os.path.join(self.build_directory, "memgraph")
args_mg = [memgraph_binary, "--storage-properties-on-edges", "--data-directory", self.data_directory.name]
args_mg = [
memgraph_binary,
"--storage-properties-on-edges",
"--data-directory",
self.data_directory.name,
"--log-file",
str(os.path.join(BASE_DIR, "tests", "gql_behave", "memgraph.log")),
]
self.proc_mg = subprocess.Popen(args_mg + self.args)
wait_for_server(7687, 1)
assert self.is_running(), "The Memgraph process died!"