8000 Scope schema discovery to target host's cluster in multi-cluster CHI by lukas-pfannschmidt-tr · Pull Request #1965 · Altinity/clickhouse-operator · GitHub
[go: up one dir, main page]

Skip to content
7FFF
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/model/chi/schemer/distributed.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,21 @@ func (s *ClusterSchemer) getDistributedObjectsSQLs(ctx context.Context, host *ap
databaseNames, createDatabaseSQLs := debugCreateSQLs(
s.QueryUnzip2Columns(
ctx,
s.Names(interfaces.NameFQDNs, host, api.ClickHouseInstallation{}, false),
s.Names(interfaces.NameFQDNs, host, api.Cluster{}, false),
s.sqlCreateDatabaseDistributed(host.Runtime.Address.ClusterName),
),
)
tableNames, createTableSQLs := debugCreateSQLs(
s.QueryUnzipAndApplyUUIDs(
ctx,
s.Names(interfaces.NameFQDNs, host, api.ClickHouseInstallation{}, false),
s.Names(interfaces.NameFQDNs, host, api.Cluster{}, false),
s.sqlCreateTableDistributed(host.Runtime.Address.ClusterName),
),
)
functionNames, createFunctionSQLs := debugCreateSQLs(
s.QueryUnzip2Columns(
ctx,
s.Names(interfaces.NameFQDNs, host, api.ClickHouseInstallation{}, false),
s.Names(interfaces.NameFQDNs, host, api.Cluster{}, false),
s.sqlCreateFunction(host.Runtime.Address.ClusterName),
),
)
Expand Down
6 changes: 3 additions & 3 deletions pkg/model/chi/schemer/replicated.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,21 @@ func (s *ClusterSchemer) getReplicatedObjectsSQLs(ctx context.Context, host *api
databaseNames, createDatabaseSQLs := debugCreateSQLs(
s.QueryUnzip2Columns(
ctx,
s.Names(interfaces.NameFQDNs, host, api.ClickHouseInstallation{}, false),
s.Names(interfaces.NameFQDNs, host, api.Cluster{}, false),
s.sqlCreateDatabaseReplicated(host.Runtime.Address.ClusterName),
),
)
tableNames, createTableSQLs := debugCreateSQLs(
s.QueryUnzipAndApplyUUIDs(
ctx,
s.Names(interfaces.NameFQDNs, host, api.ClickHouseInstallation{}, false),
s.Names(interfaces.NameFQDNs, host, api.Cluster{}, false),
s.sqlCreateTableReplicated(host.Runtime.Address.ClusterName),
),
)
functionNames, createFunctionSQLs := debugCreateSQLs(
s.QueryUnzip2Columns(
ctx,
s.Names(interfaces.NameFQDNs, host, api.ClickHouseInstallation{}, false),
s.Names(interfaces.NameFQDNs, host, api.Cluster{}, false),
s.sqlCreateFunction(host.Runtime.Address.ClusterName),
),
)
Expand Down
Loading
0