Install storage_policy for Distributed tables (follow-up for #8756)

This commit is contained in:
Azat Khuzhin 2020-03-29 10:43:40 +03:00
parent 0e9ddb9131
commit fbf72aee8d
2 changed files with 8 additions and 0 deletions

View File

@ -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))

View File

@ -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;