diff --git a/public/app/plugins/datasource/loki/queryUtils.ts b/public/app/plugins/datasource/loki/queryUtils.ts index 79d1088e053..ba2ebb6f574 100644 --- a/public/app/plugins/datasource/loki/queryUtils.ts +++ b/public/app/plugins/datasource/loki/queryUtils.ts @@ -307,9 +307,11 @@ export function getStreamSelectorsFromQuery(query: string): string[] { export function requestSupportsPartitioning(allQueries: LokiQuery[]) { const queries = allQueries.filter((query) => !query.hide); /* - * For now, we will not split when more than 1 query is requested. + * For now, we only split if there is a single query. + * - we do not split for zero queries + * - we do not split for multiple queries */ - if (queries.length > 1) { + if (queries.length !== 1) { return false; }