Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing client.command(..) method #67

Open
jovezhong opened this issue Dec 21, 2024 · 0 comments
Open

Missing client.command(..) method #67

jovezhong opened this issue Dec 21, 2024 · 0 comments
Assignees

Comments

@jovezhong
Copy link
Collaborator

In clickhouse_connect, there is command method

https://github.com/ClickHouse/clickhouse-connect/blob/main/clickhouse_connect/driver/httpclient.py#L315

in dbt-clickhouse code, they will run such commands to get single row or ignore the resulst

        cmd = 'CREATE USER IF NOT EXISTS %s IDENTIFIED WITH sha256_hash BY %s'
        if test_cluster != '':
            cmd = f'CREATE USER IF NOT EXISTS %s ON CLUSTER "{test_cluster}"  IDENTIFIED WITH sha256_hash BY %s'

        test_client.command(
            cmd,
            (dbt_user, '5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8'),
        )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants