Skip to content

Commit 71b0d4a

Browse files
committed
fix(schema-compiler): fix FILTER_PARAMS flow in pre aggregations filtering
1 parent 9ae3852 commit 71b0d4a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/cubejs-schema-compiler/src/adapter/BaseQuery.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2865,12 +2865,9 @@ export class BaseQuery {
28652865
}
28662866

28672867
newSubQueryForCube(cube, options) {
2868-
if (this.options.queryFactory) {
2869-
options.paramAllocator = null;
2870-
return this.options.queryFactory.createQuery(cube, this.compilers, this.subQueryOptions(options));
2871-
}
2872-
2873-
return this.newSubQuery(options);
2868+
return this.options.queryFactory
2869+
? this.options.queryFactory.createQuery(cube, this.compilers, this.subQueryOptions(options))
2870+
: this.newSubQuery(options);
28742871
}
28752872

28762873
subQueryOptions(options) {

0 commit comments

Comments
 (0)