ClickHouse / ClickHouse/dbt-clickhouse

Move 'temporary' tables to a working database

Open
#281 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
362
Forks
177
Avg merge
2d 10h
Merged PRs (30d)
8

Description

**Is your feature request related to a problem? Please describe.**
'temporary' tables such as the 'new data' table (e.g. `my_table__dbt_new_data_` ), can clutter the main databases causing confusion to users.

**Describe the solution you'd like**
Have an option to create these 'temporary' tables in a separate 'working' database in clickhouse. Ideally we should be able to configure where these tables are created to avoid confusion, and to simplify the clean up of these tables if they are left dangling after a failure.

**Describe alternatives you've considered**
Perhaps a macro to search for such tables and clean them up, but it would be cleaner to separate them in the first place if possible.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by locating the logic that creates temporary tables and the configuration used for database targets. Done means a configurable working database is supported for these tables and cleanup behavior is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
clickhouse, python
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.