Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
akvlad committed Sep 25, 2024
1 parent 57961e9 commit ea19418
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pyroscope/pyroscope.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,13 +377,14 @@ const series = async (req, res) => {
`format('{}:{}:{}:{}:{}', (splitByChar(':', type_id) as _parts)[1], ${sampleTypesUnitsFieldName}.1, ${sampleTypesUnitsFieldName}.2, _parts[2], _parts[3])`,
specialMatchers.__profile_type__))
}
let specialClauses = null
if (clauses.length === 0) {
return Sql.Eq(new Sql.Raw('1'), 1)
specialClauses = Sql.Eq(new Sql.Raw('1'), 1)
} else if (clauses.length === 1) {
specialClauses = clauses[0]
} else {
specialClauses = Sql.And(...clauses)
}
if (clauses.length === 1) {
return clauses[0]
}
const specialClauses = Sql.And(...clauses)
//
const serviceNameSelector = serviceNameSelectorQuery(labelSelector)
const idxReq = matcherIdxRequest(labelSelector, specialMatchers, fromTimeSec, toTimeSec)
Expand Down

0 comments on commit ea19418

Please sign in to comment.