Altinity / Altinity/clickhouse-backup

Add options which allow restore non sharded replicated tables

Open
#1,181 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
1.6k
Forks
276
Avg merge
18h 3m
Merged PRs (30d)
26

Description

CLICKHOUSE_SKIP_RESTORE_NON_SHARDED_REPLICATED_TABLES - false / 0 default value
CLICKHOUSE_SKIP_CHECK_NON_SHARDED_REPLICATED_TABLES_CLUSTER - with {cluster} default value

use following query to check global tables

SELECT database, table, if(uniqExact(zookeeper_path) = 1 AND count() > 1,'global','sharded') AS type 
FROM clusterAllReplicas('{cluster}', system.replicas)
GROUP BY database, table
HAVING type='global'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by tracing the restore path and configuration parsing for existing skip/check options; use the supplied clusterAllReplicas query to validate non-sharded replicated-table detection, and finish by confirming the two documented defaults and restore behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
clickhouse, go, sql
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.