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