Skip to content

Commit

Permalink
fix(cubesql): Cannot read properties of undefined (reading 'preAggreg…
Browse files Browse the repository at this point in the history
…ation') with enabled SQL push down
  • Loading branch information
paveltiunov committed Feb 13, 2024
1 parent 7cb1229 commit ac2cc17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cubejs-schema-compiler/src/adapter/BaseQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ export class BaseQuery {
if (!this.options.preAggregationQuery && !this.ungrouped) {
preAggForQuery =
this.preAggregations.findPreAggregationForQuery();
if (this.options.disableExternalPreAggregations && preAggForQuery.preAggregation.external) {
if (this.options.disableExternalPreAggregations && preAggForQuery && preAggForQuery.preAggregation.external) {
preAggForQuery = undefined;
}
}
Expand Down

0 comments on commit ac2cc17

Please sign in to comment.