Make tiny improvements

This commit is contained in:
ltrk2 2023-02-21 07:27:34 -08:00
parent 4fcc5bbea7
commit 3bf2411be1
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -72,7 +72,7 @@ void ISource::progress(size_t read_rows, size_t read_bytes)
std::optional<ISource::ReadProgress> 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;