Skip to content

Commit

Permalink
fix(base-driver): Support parsing intervals with month|quarter|year g…
Browse files Browse the repository at this point in the history
…ranularity (#7561)
  • Loading branch information
ovr authored Dec 19, 2023
1 parent 9a7fd5a commit 24c850c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cubejs-schema-compiler/src/adapter/BaseQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -2672,10 +2672,10 @@ export class BaseQuery {
/**
* @protected
* @param {string} interval
* @return {(number|*)[]}
* @return {[number, string]}
*/
parseInterval(interval) {
const intervalMatch = interval.match(/^(\d+) (second|minute|hour|day|week)s?$/);
const intervalMatch = interval.match(/^(\d+) (second|minute|hour|day|week|month|quarter|year)s?$/);
if (!intervalMatch) {
throw new UserError(`Invalid interval: ${interval}`);
}
Expand Down

0 comments on commit 24c850c

Please sign in to comment.