mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
code style check
This commit is contained in:
parent
b0df75626b
commit
09a4f82d0f
@ -24,7 +24,7 @@ void TTLUpdateInfoAlgorithm::execute(Block & block)
|
||||
|
||||
void TTLUpdateInfoAlgorithm::finalize(const MutableDataPartPtr & data_part) const
|
||||
{
|
||||
if (description.mode == TTLMode::RECOMPRESS)
|
||||
if (description.mode == TTLMode::RECOMPRESS)
|
||||
{
|
||||
data_part->ttl_infos.recompression_ttl[description.result_column] = new_ttl_info;
|
||||
}
|
||||
@ -46,7 +46,7 @@ void TTLUpdateInfoAlgorithm::finalize(const MutableDataPartPtr & data_part) cons
|
||||
|
||||
data_part->ttl_infos.updatePartMinMaxTTL(new_ttl_info.min, new_ttl_info.max);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -623,8 +623,8 @@ ASTPtr MutationsInterpreter::prepare(bool dry_run)
|
||||
plan.addStep(std::make_unique<ReadFromPreparedSource>(Pipe(std::move(source))));
|
||||
auto pipeline = addStreamsForLaterStages(stages_copy, plan);
|
||||
updated_header = std::make_unique<Block>(pipeline->getHeader());
|
||||
}
|
||||
else
|
||||
}
|
||||
else
|
||||
{
|
||||
//no column updated in mutations. maybe just materialize(index\projection\ttl)
|
||||
updated_header = std::make_unique<Block>(Block{});
|
||||
|
@ -257,7 +257,7 @@ ColumnDependencies StorageInMemoryMetadata::getColumnDependencies(const NameSet
|
||||
updated_ttl_columns.insert(column.name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for (const auto & entry : getRecompressionTTLs())
|
||||
add_dependent_columns(entry.expression, required_ttl_columns);
|
||||
|
||||
|
@ -48,4 +48,4 @@
|
||||
4 d
|
||||
1
|
||||
2
|
||||
4 d
|
||||
4 d
|
||||
|
@ -58,4 +58,4 @@
|
||||
4 d
|
||||
1
|
||||
=============
|
||||
0
|
||||
0
|
||||
|
@ -19,4 +19,4 @@
|
||||
2
|
||||
2
|
||||
1 2 3 2000-01-01
|
||||
1 2 42 2000-01-01
|
||||
1 2 42 2000-01-01
|
||||
|
@ -6,6 +6,7 @@ CREATE TABLE table_rename_with_ttl
|
||||
value1 String
|
||||
)
|
||||
ENGINE = ReplicatedMergeTree('/clickhouse/test/table_rename_with_ttl_01378', '1')
|
||||
order by value1
|
||||
SETTINGS merge_with_ttl_timeout=0,max_number_of_merges_with_ttl_in_pool=0;
|
||||
|
||||
ORDER BY tuple();
|
||||
|
Loading…
Reference in New Issue
Block a user