Skip to main content
Version: devel

dlt.destinations.impl.clickhouse_cluster.configuration

ClickHouseClusterCredentials Objects

@configspec(init=False)
class ClickHouseClusterCredentials(ClickHouseCredentials)

View source on GitHub

alt_hosts

Comma-separated list of alternative host:port pairs.

Used as fallback when connecting to host:port fails. Example: host1:9441,host2:9440.

alt_http_hosts

Comma-separated list of alternative host:http_port pairs.

Used as fallback when connecting to host:http_port fails. Example: host1:8444,host2:8443.

ClickHouseClusterClientConfiguration Objects

@configspec
class ClickHouseClusterClientConfiguration(ClickHouseClientConfiguration)

View source on GitHub

dlt_tables_table_engine_type

Default table engine to use for dlt tables.

Also applies to dataset sentinel table. Falls back to table_engine_type if set to None.

cluster

Name of the ClickHouse cluster to load data into.

create_distributed_tables

Whether to create distributed tables in addition to standard tables.

Can be overridden per resource using clickhouse_cluster_adapter.

distributed_tables_database

Name of the database to create distributed tables in.

If set to None, uses the same database as standard tables.

distributed_table_suffix

Suffix to append to table names when creating distributed tables.

For example, if set to _dist, a table named events will have a distributed table named events_dist.

Can be overridden per resource using clickhouse_cluster_adapter.

sharding_key

Sharding key expression to use for distributed tables.

Can be overridden per resource using clickhouse_cluster_adapter.

This demo works on codespaces. Codespaces is a development environment available for free to anyone with a Github account. You'll be asked to fork the demo repository and from there the README guides you with further steps.
The demo uses the Continue VSCode extension.

Off to codespaces!

DHelp

Ask a question

Welcome to "Codex Central", your next-gen help center, driven by OpenAI's GPT-4 model. It's more than just a forum or a FAQ hub – it's a dynamic knowledge base where coders can find AI-assisted solutions to their pressing problems. With GPT-4's powerful comprehension and predictive abilities, Codex Central provides instantaneous issue resolution, insightful debugging, and personalized guidance. Get your code running smoothly with the unparalleled support at Codex Central - coding help reimagined with AI prowess.