diff --git a/pkg/bloombuild/planner/planner.go b/pkg/bloombuild/planner/planner.go index 7c13dedb50452..786c9769c2bc7 100644 --- a/pkg/bloombuild/planner/planner.go +++ b/pkg/bloombuild/planner/planner.go @@ -659,7 +659,7 @@ func (p *Planner) loadTenantTables( // If this is the first this we see this table, initialize the map if tenantTables[table] == nil { - tenantTables[table] = make([]string, tenants.Remaining()) + tenantTables[table] = make([]string, 0, tenants.Remaining()) } for tenants.Next() && tenants.Err() == nil && ctx.Err() == nil {