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

Exporter/clickhouse support for distributed table #32736

Closed
nengc opened this issue Apr 29, 2024 · 7 comments
Closed

Exporter/clickhouse support for distributed table #32736

nengc opened this issue Apr 29, 2024 · 7 comments
Labels
exporter/clickhouse question Further information is requested

Comments

@nengc
Copy link

nengc commented Apr 29, 2024

Component(s)

exporter/clickhouse

Is your feature request related to a problem? Please describe.

I cannot find anything about the distributed table in the codes. So cannot support sharding at this moment?
https://clickhouse.com/docs/en/engines/table-engines/special/distributed

Describe the solution you'd like

Support distributed table like below:
CREATE TABLE [IF NOT EXISTS] [db.]table_name [ON CLUSTER cluster]
(
name1 [type1] [DEFAULT|MATERIALIZED|ALIAS expr1],
name2 [type2] [DEFAULT|MATERIALIZED|ALIAS expr2],
...
) ENGINE = Distributed(cluster, database, table[, sharding_key[, policy_name]])
[SETTINGS name=value, ...]

Describe alternatives you've considered

No response

Additional context

No response

@nengc nengc added enhancement New feature or request needs triage New item requiring triage labels Apr 29, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@mshustov
Copy link

@SpencerTorres closed by #31920?

@nengc
Copy link
Author

nengc commented May 8, 2024

Hi @mshustov ,i mean the clickhouse sharding using the “Distributed Table”,not the replica

@Frapschen
Copy link
Contributor

@SpencerTorres
Copy link
Member

Please see this response.

The other comment is also a good suggestion if you want to use the existing config options, but for now this can be handled by manually creating the table.

By manually creating the table you will have full control over these settings. We can close this issue for now. Thanks!

@Frapschen Frapschen added question Further information is requested and removed enhancement New feature or request needs triage New item requiring triage labels Aug 8, 2024
@SpencerTorres
Copy link
Member

This can be closed @crobert-1. Users now have full control over table creation with example DDL provided

@crobert-1
Copy link
Member

Thanks @SpencerTorres!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter/clickhouse question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants