Skip to content

Commit

Permalink
fix StorageSystemDictionaries
Browse files Browse the repository at this point in the history
  • Loading branch information
CurtizJ committed Mar 6, 2024
1 parent 1c0aed8 commit c887833
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Storages/System/StorageSystemDictionaries.cpp
Expand Up @@ -51,8 +51,8 @@ catch (const DB::Exception &)

}

StorageSystemDictionaries::StorageSystemDictionaries(const StorageID & storage_id_)
: IStorageSystemOneBlock(storage_id_, getColumnsDescription())
StorageSystemDictionaries::StorageSystemDictionaries(const StorageID & storage_id_, ColumnsDescription columns_description_)
: IStorageSystemOneBlock(storage_id_, std::move(columns_description_))
{
VirtualColumnsDescription virtuals;
virtuals.addEphemeral("key", std::make_shared<DataTypeString>(), "");
Expand Down
4 changes: 1 addition & 3 deletions src/Storages/System/StorageSystemDictionaries.h
Expand Up @@ -12,15 +12,13 @@ class Context;
class StorageSystemDictionaries final : public IStorageSystemOneBlock
{
public:
explicit StorageSystemDictionaries(const StorageID & storage_id_);
StorageSystemDictionaries(const StorageID & storage_id_, ColumnsDescription columns_description_);

std::string getName() const override { return "SystemDictionaries"; }

static ColumnsDescription getColumnsDescription();

protected:
using IStorageSystemOneBlock::IStorageSystemOneBlock;

void fillData(MutableColumns & res_columns, ContextPtr context, const ActionsDAG::Node *, std::vector<UInt8>) const override;
};

Expand Down

0 comments on commit c887833

Please sign in to comment.