mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
fix mutations
This commit is contained in:
parent
1785b27ae5
commit
31c39c8137
@ -71,7 +71,6 @@ public:
|
||||
|
||||
virtual bool isStoredOnDisk() const = 0;
|
||||
|
||||
|
||||
virtual bool supportsVerticalMerge() const { return false; }
|
||||
|
||||
/// NOTE: Returns zeros if column files are not found in checksums.
|
||||
|
@ -942,15 +942,6 @@ protected:
|
||||
|
||||
void setStoragePolicy(const String & new_storage_policy_name, bool only_check = false);
|
||||
|
||||
/// out_rename_map maps column files for the out_expression onto new table files.
|
||||
/// out_force_update_metadata denotes if metadata must be changed even if out_rename_map is empty (used
|
||||
/// for transformation-free changing of Enum values list).
|
||||
/// Files to be deleted are mapped to an empty string in out_rename_map.
|
||||
/// If part == nullptr, just checks that all type conversions are possible.
|
||||
// void createConvertExpression(const DataPartPtr & part, const NamesAndTypesList & old_columns, const NamesAndTypesList & new_columns,
|
||||
// const IndicesASTs & old_indices, const IndicesASTs & new_indices,
|
||||
// ExpressionActionsPtr & out_expression, NameToNameMap & out_rename_map, bool & out_force_update_metadata) const;
|
||||
|
||||
/// Calculates column sizes in compressed form for the current state of data_parts. Call with data_parts mutex locked.
|
||||
void calculateColumnSizesImpl();
|
||||
/// Adds or subtracts the contribution of the part to compressed column sizes.
|
||||
|
@ -990,16 +990,18 @@ MergeTreeData::MutableDataPartPtr MergeTreeDataMergerMutator::mutatePartToTempor
|
||||
|
||||
auto new_data_part = data.createPart(
|
||||
future_part.name,
|
||||
source_part->getType(),
|
||||
future_part.part_info,
|
||||
space_reservation->getDisk(),
|
||||
std::move(new_columns),
|
||||
source_part->bytes_on_disk,
|
||||
source_part->rows_count,
|
||||
"tmp_mut_" + future_part.name);
|
||||
|
||||
new_data_part->is_temp = true;
|
||||
new_data_part->ttl_infos = source_part->ttl_infos;
|
||||
|
||||
/// It shouldn't be changed by mutation.
|
||||
new_data_part->index_granularity_info = source_part->index_granularity_info;
|
||||
new_data_part->setColumns(new_columns);
|
||||
|
||||
String new_part_tmp_path = new_data_part->getFullPath();
|
||||
|
||||
/// Note: this is done before creating input streams, because otherwise data.data_parts_mutex
|
||||
|
Loading…
Reference in New Issue
Block a user