Skip to content

Commit

Permalink
Fix failing tests after tuning sortTimeDimensionsWithRollupGranularity
Browse files Browse the repository at this point in the history
  • Loading branch information
KSDaemon committed Sep 17, 2024
1 parent 5969733 commit 26a62c7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@ export class PreAggregations {
backAlias(references.sortedTimeDimensions || sortTimeDimensions(references.timeDimensions));
const qryTimeDimensions = references.allowNonStrictDateRangeMatch
? transformedQuery.timeDimensions
: transformedQuery.sortedTimeDimensions;
: transformedQuery.sortedTimeDimensions.map(t => t.slice(0, 2));
// slice above is used to exclude possible custom granularity returned from sortTimeDimensionsWithRollupGranularity()

const backAliasMeasures = backAlias(references.measures);
const backAliasSortedDimensions = backAlias(references.sortedDimensions || references.dimensions);
Expand Down Expand Up @@ -793,7 +794,7 @@ export class PreAggregations {
}

/**
* Returns an array of potencially applicable for the query preaggs in the
* Returns an array of potentially applicable for the query preaggs in the
* same order they appear in the schema file.
* @returns {Array<Object>}
*/
Expand Down

0 comments on commit 26a62c7

Please sign in to comment.