mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-24 10:40:49 +00:00
Install storage_policy for Distributed tables (follow-up for #8756)
This commit is contained in:
parent
0e9ddb9131
commit
fbf72aee8d
@ -530,6 +530,13 @@ namespace
|
||||
}
|
||||
|
||||
|
||||
StoragePolicyPtr StorageDistributed::getStoragePolicy() const
|
||||
{
|
||||
if (storage_policy.empty())
|
||||
return {};
|
||||
return global_context.getStoragePolicySelector()->get(storage_policy);
|
||||
}
|
||||
|
||||
NameAndTypePair StorageDistributed::getColumn(const String & column_name) const
|
||||
{
|
||||
if (getColumns().hasPhysical(column_name))
|
||||
|
@ -60,6 +60,7 @@ public:
|
||||
bool supportsSampling() const override { return true; }
|
||||
bool supportsFinal() const override { return true; }
|
||||
bool supportsPrewhere() const override { return true; }
|
||||
StoragePolicyPtr getStoragePolicy() const override;
|
||||
|
||||
NameAndTypePair getColumn(const String & column_name) const override;
|
||||
bool hasColumn(const String & column_name) const override;
|
||||
|
Loading…
Reference in New Issue
Block a user