Fix gql behave dropping connection on Memgraph (#1399)
This commit is contained in:
parent
5b91f85161
commit
7ef10dd82a
@ -189,8 +189,22 @@ class PlanHintsProvider final : public HierarchicalLogicalOperatorVisitor {
|
|||||||
bool PostVisit(Apply & /*op*/) override { return true; }
|
bool PostVisit(Apply & /*op*/) override { return true; }
|
||||||
|
|
||||||
bool PreVisit(LoadCsv & /*unused*/) 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:
|
private:
|
||||||
const SymbolTable &symbol_table_;
|
const SymbolTable &symbol_table_;
|
||||||
|
1
tests/gql_behave/.gitignore
vendored
1
tests/gql_behave/.gitignore
vendored
@ -2,3 +2,4 @@ ve3/
|
|||||||
*.pyc
|
*.pyc
|
||||||
gql_behave_status.csv
|
gql_behave_status.csv
|
||||||
gql_behave_status.html
|
gql_behave_status.html
|
||||||
|
*.log
|
||||||
|
@ -102,7 +102,14 @@ class MemgraphRunner:
|
|||||||
|
|
||||||
self.data_directory = tempfile.TemporaryDirectory()
|
self.data_directory = tempfile.TemporaryDirectory()
|
||||||
memgraph_binary = os.path.join(self.build_directory, "memgraph")
|
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)
|
self.proc_mg = subprocess.Popen(args_mg + self.args)
|
||||||
wait_for_server(7687, 1)
|
wait_for_server(7687, 1)
|
||||||
assert self.is_running(), "The Memgraph process died!"
|
assert self.is_running(), "The Memgraph process died!"
|
||||||
|
Loading…
Reference in New Issue
Block a user