From 67fc9d7129f607f9551bb5ab9944d8bc23712ddc Mon Sep 17 00:00:00 2001 From: alesapin Date: Wed, 29 Dec 2021 18:35:54 +0300 Subject: [PATCH 1/2] Fix clang-tidy --- src/Processors/Transforms/buildPushingToViewsChain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Processors/Transforms/buildPushingToViewsChain.cpp b/src/Processors/Transforms/buildPushingToViewsChain.cpp index fdd0150536a..17075e2b318 100644 --- a/src/Processors/Transforms/buildPushingToViewsChain.cpp +++ b/src/Processors/Transforms/buildPushingToViewsChain.cpp @@ -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); From 34145c47da9787ffb4da119cb10f006d9f70844c Mon Sep 17 00:00:00 2001 From: alesapin Date: Wed, 29 Dec 2021 18:36:42 +0300 Subject: [PATCH 2/2] Fix clang tidy --- src/Formats/FormatFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Formats/FormatFactory.cpp b/src/Formats/FormatFactory.cpp index cf2cdd6c547..467fdfddafe 100644 --- a/src/Formats/FormatFactory.cpp +++ b/src/Formats/FormatFactory.cpp @@ -238,7 +238,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