From cf19ab76dc4c34adb2fb01288f34e93972da677e Mon Sep 17 00:00:00 2001 From: Peng Jian Date: Mon, 22 Mar 2021 19:42:25 +0800 Subject: [PATCH] skip to next one before throw parsing exception --- src/Processors/Formats/IRowInputFormat.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Processors/Formats/IRowInputFormat.cpp b/src/Processors/Formats/IRowInputFormat.cpp index 75a9abf6845..a0f70304197 100644 --- a/src/Processors/Formats/IRowInputFormat.cpp +++ b/src/Processors/Formats/IRowInputFormat.cpp @@ -108,6 +108,12 @@ Chunk IRowInputFormat::generate() if (!isParseError(e.code())) throw; + if (params.sync_after_error) + { + syncAfterError(); + throw; + } + if (params.allow_errors_num == 0 && params.allow_errors_ratio == 0) throw;