dbt-clickhouse icon indicating copy to clipboard operation
dbt-clickhouse copied to clipboard

Question: Is it possible to set a separate database for local tables using `distributed_table` materialisation?

Open bun4uk opened this issue 1 year ago • 2 comments

bun4uk avatar Feb 12 '24 17:02 bun4uk

You mean

database_local/shard.table database_distributed.table

correct?

This is also how we use them allow easier role based access. Would be great.

IIRC, should not be hard to add to the first distributed table PR but I have not kept up with the changes and tests.

To generalize, we should add support for table name prefix, suffix, or separate database (same name) for the local and/or distributed tables.

emirkmo avatar Mar 08 '24 06:03 emirkmo

Emir, hi! Yes, you understood me correct

bun4uk avatar Mar 27 '24 13:03 bun4uk

Hey, I have created a PR that allows to add a prefix to the database of the local table. By that you can filter them and apply dedicated permissions.

steffen030 avatar May 30 '24 08:05 steffen030