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 cd6946d commit 767a71eCopy full SHA for 767a71e
packages/cubejs-schema-compiler/src/adapter/BaseQuery.js
@@ -632,7 +632,9 @@ export class BaseQuery {
632
if (this.from) {
633
return this.simpleQuery();
634
}
635
- if (!this.options.preAggregationQuery && !this.customSubQueryJoins.length) {
+ const hasMemberExpressions = this.allMembersConcat(false).some(m => m.isMemberExpression);
636
+
637
+ if (!this.options.preAggregationQuery && !this.customSubQueryJoins.length && !hasMemberExpressions) {
638
preAggForQuery =
639
this.preAggregations.findPreAggregationForQuery();
640
if (this.options.disableExternalPreAggregations && preAggForQuery?.preAggregation.external) {
0 commit comments