mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-14 18:41:31 +08:00
fix: change the order of local and distributed table (#4565)
This commit is contained in:
parent
0c59953cb5
commit
c4bbbf372c
@ -3665,7 +3665,7 @@ func (r *ClickHouseReader) UpdateLogField(ctx context.Context, field *model.Upda
|
|||||||
return &model.ApiError{Err: err, Typ: model.ErrorInternal}
|
return &model.ApiError{Err: err, Typ: model.ErrorInternal}
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, table := range []string{r.logsLocalTable, r.logsTable} {
|
for _, table := range []string{r.logsTable, r.logsLocalTable} {
|
||||||
// drop materialized column from logs table
|
// drop materialized column from logs table
|
||||||
query := "ALTER TABLE %s.%s ON CLUSTER %s DROP COLUMN IF EXISTS %s "
|
query := "ALTER TABLE %s.%s ON CLUSTER %s DROP COLUMN IF EXISTS %s "
|
||||||
err := r.db.Exec(ctx, fmt.Sprintf(query,
|
err := r.db.Exec(ctx, fmt.Sprintf(query,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user