mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Clang-tidy fixes
This commit is contained in:
parent
1fefb86f7b
commit
c76b4b3481
@ -1531,7 +1531,7 @@ std::set<MergeTreeIndexPtr> MergeTreeDataMergerMutator::getIndicesToRecalculate(
|
||||
BlockInputStreamPtr & input_stream,
|
||||
const NamesAndTypesList & updated_columns,
|
||||
const StorageMetadataPtr & metadata_snapshot,
|
||||
const Context & context) const
|
||||
const Context & context)
|
||||
{
|
||||
/// Checks if columns used in skipping indexes modified.
|
||||
const auto & index_factory = MergeTreeIndexFactory::instance();
|
||||
|
@ -174,11 +174,11 @@ private:
|
||||
|
||||
/// Return set of indices which should be recalculated during mutation also
|
||||
/// wraps input stream into additional expression stream
|
||||
std::set<MergeTreeIndexPtr> getIndicesToRecalculate(
|
||||
static std::set<MergeTreeIndexPtr> getIndicesToRecalculate(
|
||||
BlockInputStreamPtr & input_stream,
|
||||
const NamesAndTypesList & updated_columns,
|
||||
const StorageMetadataPtr & metadata_snapshot,
|
||||
const Context & context) const;
|
||||
const Context & context);
|
||||
|
||||
/// Override all columns of new part using mutating_stream
|
||||
void mutateAllPartColumns(
|
||||
|
@ -40,7 +40,7 @@ public:
|
||||
* (split rows by partition)
|
||||
* Works deterministically: if same block was passed, function will return same result in same order.
|
||||
*/
|
||||
BlocksWithPartition splitBlockIntoParts(const Block & block, size_t max_parts, const StorageMetadataPtr & metadata_snapshot);
|
||||
static BlocksWithPartition splitBlockIntoParts(const Block & block, size_t max_parts, const StorageMetadataPtr & metadata_snapshot);
|
||||
|
||||
/** All rows must correspond to same partition.
|
||||
* Returns part with unique name starting with 'tmp_', yet not added to MergeTreeData.
|
||||
|
@ -90,7 +90,7 @@ bool StorageMerge::mayBenefitFromIndexForIn(const ASTPtr & left_in_operand, cons
|
||||
size_t i = 0;
|
||||
for (const auto & table : selected_tables)
|
||||
{
|
||||
auto storage_ptr = std::get<0>(table);
|
||||
const auto & storage_ptr = std::get<0>(table);
|
||||
auto metadata_snapshot = storage_ptr->getInMemoryMetadataPtr();
|
||||
if (storage_ptr->mayBenefitFromIndexForIn(left_in_operand, query_context, metadata_snapshot))
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user