Skip to content

[ClickHouse] Refine database/table creation for single or replicated node #3982

Open
@karencfv

Description

@karencfv

After #3494 is merged, there will be 2 copies for the SQL that creates the oximeter database and its corresponding tables. One for replicated set ups and another for single node installations. This is due to the fact that replicated mode needs to declare which cluster it's creating the databases and tables on, and the tables must use the ReplicatedMergeTree engine (single node must use MergeTree).

As a follow up, these files should be removed and in their stead, we could implement a module or something that creates the necessary type of database/table dynamically without parsing separate raw SQL files.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions