mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Added few FIXMEs to not forget.
This commit is contained in:
parent
b3e261800d
commit
0da7234d99
@ -194,9 +194,10 @@ void TTLBlockInputStream::removeValuesWithExpiredColumnTTL(Block & block)
|
||||
column_with_type.column = std::move(result_column);
|
||||
}
|
||||
|
||||
for (const auto & elem : storage.column_ttl_entries_by_name)
|
||||
if (block.has(elem.second.result_column))
|
||||
block.erase(elem.second.result_column);
|
||||
for (const auto & [_, ttl_entry] : storage.column_ttl_entries_by_name)
|
||||
if (block.has(ttl_entry.result_column))
|
||||
block.erase(ttl_entry.result_column);
|
||||
/// FIXME: what if table had legitimate column with this name?
|
||||
}
|
||||
|
||||
void TTLBlockInputStream::updateMovesTTL(Block & block)
|
||||
@ -217,9 +218,10 @@ void TTLBlockInputStream::updateMovesTTL(Block & block)
|
||||
}
|
||||
}
|
||||
|
||||
for (const auto & elem : storage.move_ttl_entries_by_name)
|
||||
if (block.has(elem.second.result_column))
|
||||
block.erase(elem.second.result_column);
|
||||
for (const auto & [_, ttl_entry] : storage.move_ttl_entries_by_name)
|
||||
if (block.has(ttl_entry.result_column))
|
||||
block.erase(ttl_entry.result_column);
|
||||
/// FIXME: what if table had legitimate column with this name?
|
||||
}
|
||||
|
||||
UInt32 TTLBlockInputStream::getTimestampByIndex(const IColumn * column, size_t ind)
|
||||
|
@ -116,7 +116,7 @@ void updateTTL(const MergeTreeData::TTLEntry & ttl_entry,
|
||||
|
||||
ttl_infos.updatePartMinMaxTTL(ttl_info.min, ttl_info.max);
|
||||
|
||||
/// FIXME why we don't erase new column from block?
|
||||
/// FIXME: why we don't erase new column from block?
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user