Merge pull request #33296 from ClickHouse/fix_clang_tidy_3

Fix clang tidy 3
This commit is contained in:
alesapin 2021-12-29 22:43:42 +03:00 committed by GitHub
commit 16c36d72b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -236,7 +236,7 @@ InputFormatPtr FormatFactory::getInputFormat(
static void addExistingProgressToOutputFormat(OutputFormatPtr format, ContextPtr context)
{
auto element_id = context->getProcessListElement();
auto * element_id = context->getProcessListElement();
if (element_id)
{
/// While preparing the query there might have been progress (for example in subscalar subqueries) so add it here

View File

@ -596,7 +596,7 @@ void PushingToLiveViewSink::consume(Chunk chunk)
{
Progress local_progress(chunk.getNumRows(), chunk.bytes(), 0);
StorageLiveView::writeIntoLiveView(live_view, getHeader().cloneWithColumns(chunk.detachColumns()), context);
auto process = context->getProcessListElement();
auto * process = context->getProcessListElement();
if (process)
process->updateProgressIn(local_progress);
ProfileEvents::increment(ProfileEvents::SelectedRows, local_progress.read_rows);
@ -619,7 +619,7 @@ void PushingToWindowViewSink::consume(Chunk chunk)
Progress local_progress(chunk.getNumRows(), chunk.bytes(), 0);
StorageWindowView::writeIntoWindowView(
window_view, getHeader().cloneWithColumns(chunk.detachColumns()), context);
auto process = context->getProcessListElement();
auto * process = context->getProcessListElement();
if (process)
process->updateProgressIn(local_progress);
ProfileEvents::increment(ProfileEvents::SelectedRows, local_progress.read_rows);