mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 17:56:04 +08:00
fix: do not add redundant [] for array (#3484)
This commit is contained in:
parent
1f7e70fa16
commit
921fca5e67
@ -798,14 +798,14 @@ func (r *ClickHouseReader) GetServices(ctx context.Context, queryParams *model.G
|
|||||||
avg(durationNano) as avgDuration,
|
avg(durationNano) as avgDuration,
|
||||||
count(*) as numCalls
|
count(*) as numCalls
|
||||||
FROM %s.%s
|
FROM %s.%s
|
||||||
WHERE serviceName = @serviceName AND name In [@names] AND timestamp>= @start AND timestamp<= @end`,
|
WHERE serviceName = @serviceName AND name In @names AND timestamp>= @start AND timestamp<= @end`,
|
||||||
r.TraceDB, r.indexTable,
|
r.TraceDB, r.indexTable,
|
||||||
)
|
)
|
||||||
errorQuery := fmt.Sprintf(
|
errorQuery := fmt.Sprintf(
|
||||||
`SELECT
|
`SELECT
|
||||||
count(*) as numErrors
|
count(*) as numErrors
|
||||||
FROM %s.%s
|
FROM %s.%s
|
||||||
WHERE serviceName = @serviceName AND name In [@names] AND timestamp>= @start AND timestamp<= @end AND statusCode=2`,
|
WHERE serviceName = @serviceName AND name In @names AND timestamp>= @start AND timestamp<= @end AND statusCode=2`,
|
||||||
r.TraceDB, r.indexTable,
|
r.TraceDB, r.indexTable,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -893,7 +893,7 @@ func (r *ClickHouseReader) GetServiceOverview(ctx context.Context, queryParams *
|
|||||||
quantile(0.50)(durationNano) as p50,
|
quantile(0.50)(durationNano) as p50,
|
||||||
count(*) as numCalls
|
count(*) as numCalls
|
||||||
FROM %s.%s
|
FROM %s.%s
|
||||||
WHERE serviceName = @serviceName AND name In [@names] AND timestamp>= @start AND timestamp<= @end`,
|
WHERE serviceName = @serviceName AND name In @names AND timestamp>= @start AND timestamp<= @end`,
|
||||||
r.TraceDB, r.indexTable,
|
r.TraceDB, r.indexTable,
|
||||||
)
|
)
|
||||||
args := []interface{}{}
|
args := []interface{}{}
|
||||||
@ -924,7 +924,7 @@ func (r *ClickHouseReader) GetServiceOverview(ctx context.Context, queryParams *
|
|||||||
toStartOfInterval(timestamp, INTERVAL @interval minute) as time,
|
toStartOfInterval(timestamp, INTERVAL @interval minute) as time,
|
||||||
count(*) as numErrors
|
count(*) as numErrors
|
||||||
FROM %s.%s
|
FROM %s.%s
|
||||||
WHERE serviceName = @serviceName AND name In [@names] AND timestamp>= @start AND timestamp<= @end AND statusCode=2`,
|
WHERE serviceName = @serviceName AND name In @names AND timestamp>= @start AND timestamp<= @end AND statusCode=2`,
|
||||||
r.TraceDB, r.indexTable,
|
r.TraceDB, r.indexTable,
|
||||||
)
|
)
|
||||||
args = []interface{}{}
|
args = []interface{}{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user