Skip to content

Commit

Permalink
fix(schema-compiler): fix FILTER_PARAMS flow in pre aggregations filt…
Browse files Browse the repository at this point in the history
…ering
  • Loading branch information
KSDaemon committed Sep 30, 2024
1 parent 9ae3852 commit 71b0d4a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/cubejs-schema-compiler/src/adapter/BaseQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -2865,12 +2865,9 @@ export class BaseQuery {
}

newSubQueryForCube(cube, options) {
if (this.options.queryFactory) {
options.paramAllocator = null;
return this.options.queryFactory.createQuery(cube, this.compilers, this.subQueryOptions(options));
}

return this.newSubQuery(options);
return this.options.queryFactory
? this.options.queryFactory.createQuery(cube, this.compilers, this.subQueryOptions(options))
: this.newSubQuery(options);
}

subQueryOptions(options) {
Expand Down

0 comments on commit 71b0d4a

Please sign in to comment.