diff --git a/src/query/plan/hint_provider.hpp b/src/query/plan/hint_provider.hpp index 9f320ec39..74dde2f46 100644 --- a/src/query/plan/hint_provider.hpp +++ b/src/query/plan/hint_provider.hpp @@ -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_; diff --git a/tests/gql_behave/.gitignore b/tests/gql_behave/.gitignore index 265c2550e..cdbf84ac3 100644 --- a/tests/gql_behave/.gitignore +++ b/tests/gql_behave/.gitignore @@ -2,3 +2,4 @@ ve3/ *.pyc gql_behave_status.csv gql_behave_status.html +*.log diff --git a/tests/gql_behave/continuous_integration b/tests/gql_behave/continuous_integration index 655b45bb3..850fc5934 100755 --- a/tests/gql_behave/continuous_integration +++ b/tests/gql_behave/continuous_integration @@ -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!"