mirror of
https://github.com/jlengrand/signoz.git
synced 2026-03-10 08:41:20 +00:00
fix: change the order of local and distributed table (#4565)
This commit is contained in:
@@ -3665,7 +3665,7 @@ func (r *ClickHouseReader) UpdateLogField(ctx context.Context, field *model.Upda
|
||||
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
|
||||
query := "ALTER TABLE %s.%s ON CLUSTER %s DROP COLUMN IF EXISTS %s "
|
||||
err := r.db.Exec(ctx, fmt.Sprintf(query,
|
||||
|
||||
Reference in New Issue
Block a user