mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Update IMergeTreeDataPart.cpp
This commit is contained in:
parent
57e4f3698c
commit
7ae45b9d52
@ -1296,9 +1296,8 @@ String IMergeTreeDataPart::getRelativePathForPrefix(const String & prefix, bool
|
||||
auto full_relative_path = fs::path(storage.relative_data_path);
|
||||
if (detached)
|
||||
full_relative_path /= "detached";
|
||||
/// TODO What shall we do with projections?
|
||||
if (detached && parent_part)
|
||||
throw Exception(ErrorCodes::NOT_IMPLEMENTED, "Cannot detach projection");
|
||||
throw Exception(ErrorCodes::LOGICAL_ERROR, "Cannot detach projection");
|
||||
else if (parent_part)
|
||||
full_relative_path /= parent_part->relative_path;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user