We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a7fd5a commit 24c850cCopy full SHA for 24c850c
packages/cubejs-schema-compiler/src/adapter/BaseQuery.js
@@ -2672,10 +2672,10 @@ export class BaseQuery {
2672
/**
2673
* @protected
2674
* @param {string} interval
2675
- * @return {(number|*)[]}
+ * @return {[number, string]}
2676
*/
2677
parseInterval(interval) {
2678
- 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?$/);
2679
if (!intervalMatch) {
2680
throw new UserError(`Invalid interval: ${interval}`);
2681
}
0 commit comments