Skip to content

Issue with Clickhouse Startup Script #1730

@ehsanafter

Description

@ehsanafter

Hello Guys
I have got a question regarding this:

      config.d/startup_script.xml: |
        <clickhouse>
            <startup_scripts>
                <throw_on_error>true</throw_on_error>
                <scripts>
                    <query>CREATE DATABASE IF NOT EXISTS analytics</query>
                    <condition>SELECT 1</condition>
                </scripts>
            </startup_scripts>
        </clickhouse>

does not seem to be working
it is just getting ignored
is it not supported?
i found it in clickhouse docs that we can use this approach to run queries based on a condition on startup.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions