From 27f09e1c0a82ad6ac19c5dfb69f0b76f231abbb9 Mon Sep 17 00:00:00 2001 From: antonio2368 Date: Mon, 29 Mar 2021 16:40:55 +0200 Subject: [PATCH] Make LOAD CSV query part separator (#130) --- src/query/plan/preprocess.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/query/plan/preprocess.cpp b/src/query/plan/preprocess.cpp index 7b8e08975..b89071709 100644 --- a/src/query/plan/preprocess.cpp +++ b/src/query/plan/preprocess.cpp @@ -522,7 +522,8 @@ std::vector CollectSingleQueryParts(SymbolTable &symbol_table, query_part->merge_matching.emplace_back(Matching{}); AddMatching({merge->pattern_}, nullptr, symbol_table, storage, query_part->merge_matching.back()); } else if (utils::IsSubtype(*clause, With::kType) || utils::IsSubtype(*clause, query::Unwind::kType) || - utils::IsSubtype(*clause, query::CallProcedure::kType)) { + utils::IsSubtype(*clause, query::CallProcedure::kType) || + utils::IsSubtype(*clause, query::LoadCsv::kType)) { // This query part is done, continue with a new one. query_parts.emplace_back(SingleQueryPart{}); query_part = &query_parts.back();