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 8100ae5 commit b348d66Copy full SHA for b348d66
packages/cubejs-schema-compiler/src/adapter/BaseQuery.js
@@ -706,7 +706,9 @@ export class BaseQuery {
706
if (this.from) {
707
return this.simpleQuery();
708
}
709
- if (!this.options.preAggregationQuery && !this.customSubQueryJoins.length) {
+ const hasMemberExpressions = this.allMembersConcat(false).some(m => m.isMemberExpression);
710
+
711
+ if (!this.options.preAggregationQuery && !this.customSubQueryJoins.length && !hasMemberExpressions) {
712
preAggForQuery =
713
this.preAggregations.findPreAggregationForQuery();
714
if (this.options.disableExternalPreAggregations && preAggForQuery?.preAggregation.external) {
0 commit comments