From 3bf2411be1f80a26b97e0ce0f555c1b7c6ab4198 Mon Sep 17 00:00:00 2001 From: ltrk2 <107155950+ltrk2@users.noreply.github.com> Date: Tue, 21 Feb 2023 07:27:34 -0800 Subject: [PATCH] Make tiny improvements --- src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp | 2 +- src/Processors/ISource.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp b/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp index 98f47b30b1b..3bc2284a567 100644 --- a/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp +++ b/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp @@ -251,7 +251,7 @@ bool ValuesBlockInputFormat::tryParseExpressionUsingTemplate(MutableColumnPtr & /// Do not use this template anymore templates[column_idx].reset(); buf->rollbackToCheckpoint(); - *token_iterator = start; + token_iterator = start; /// It will deduce new template or fallback to slow SQL parser return parseExpression(*column, column_idx); diff --git a/src/Processors/ISource.cpp b/src/Processors/ISource.cpp index 221b98642f6..e6aeffa4807 100644 --- a/src/Processors/ISource.cpp +++ b/src/Processors/ISource.cpp @@ -72,7 +72,7 @@ void ISource::progress(size_t read_rows, size_t read_bytes) std::optional ISource::getReadProgress() { - if (finished && read_progress.read_bytes == 0 && read_progress.read_bytes == 0 && read_progress.total_rows_approx == 0) + if (finished && read_progress.read_bytes == 0 && read_progress.total_rows_approx == 0) return {}; ReadProgressCounters res_progress;