2021-02-10 14:12:49 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <ext/shared_ptr_helper.h>
|
|
|
|
#include <Storages/System/StorageSystemPartsBase.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
class Context;
|
|
|
|
|
|
|
|
|
|
|
|
/** Implements system table 'projection_parts_columns' which allows to get information about
|
|
|
|
* columns in projection parts for tables of MergeTree family.
|
|
|
|
*/
|
|
|
|
class StorageSystemProjectionPartsColumns final
|
|
|
|
: public ext::shared_ptr_helper<StorageSystemProjectionPartsColumns>, public StorageSystemPartsBase
|
|
|
|
{
|
|
|
|
friend struct ext::shared_ptr_helper<StorageSystemProjectionPartsColumns>;
|
|
|
|
public:
|
|
|
|
std::string getName() const override { return "SystemProjectionPartsColumns"; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
StorageSystemProjectionPartsColumns(const StorageID & table_id_);
|
|
|
|
void processNextStorage(
|
2021-06-02 20:03:44 +00:00
|
|
|
ContextPtr context, MutableColumns & columns, std::vector<UInt8> & columns_mask, const StoragesInfo & info, bool has_state_column) override;
|
2021-02-10 14:12:49 +00:00
|
|
|
};
|
|
|
|
}
|