mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-15 22:35:55 +08:00
fix: explicitly return the empty slice for variables query (#6258)
This commit is contained in:
parent
8d704c331c
commit
5dac1ad20a
@ -3560,7 +3560,7 @@ func (r *ClickHouseReader) AggregateLogs(ctx context.Context, params *model.Logs
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *ClickHouseReader) QueryDashboardVars(ctx context.Context, query string) (*model.DashboardVar, error) {
|
func (r *ClickHouseReader) QueryDashboardVars(ctx context.Context, query string) (*model.DashboardVar, error) {
|
||||||
var result model.DashboardVar
|
var result = model.DashboardVar{VariableValues: make([]interface{}, 0)}
|
||||||
rows, err := r.db.Query(ctx, query)
|
rows, err := r.db.Query(ctx, query)
|
||||||
|
|
||||||
zap.L().Info(query)
|
zap.L().Info(query)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user