From c1b2e750962caece8e44810c2e7b6e3dbbb9e5f4 Mon Sep 17 00:00:00 2001 From: Michael Sinelnikov Date: Sun, 17 Dec 2023 03:16:41 +0300 Subject: [PATCH] Fix Reset method --- src/core/parser/csv_parser/csv_parser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/parser/csv_parser/csv_parser.cpp b/src/core/parser/csv_parser/csv_parser.cpp index c0e0107f96..59be5db167 100644 --- a/src/core/parser/csv_parser/csv_parser.cpp +++ b/src/core/parser/csv_parser/csv_parser.cpp @@ -80,6 +80,9 @@ void CSVParser::Reset() { if (has_header_) { SkipLine(); } + + /* For correctness of GetNextRow() after this method */ + GetNextIfHas(); } void CSVParser::GetLine(unsigned long long const line_index) {