Skip to content

Commit 14adaeb

Browse files
committed
fix: TypeError: Cannot read properties of undefined (reading 'joins')
1 parent 8ff2eca commit 14adaeb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import R from 'ramda';
2-
import { FROM_PARTITION_RANGE, TO_PARTITION_RANGE } from '@cubejs-backend/shared';
2+
import { FROM_PARTITION_RANGE, getEnv, TO_PARTITION_RANGE } from '@cubejs-backend/shared';
33

44
import { UserError } from '../compiler/UserError';
55

@@ -57,6 +57,10 @@ export class PreAggregations {
5757
}
5858

5959
preAggregationCubes() {
60+
if (getEnv('nativeSqlPlanner')) {
61+
// No join defined in Tesseract
62+
return [];
63+
}
6064
const { join } = this.query;
6165
return join.joins.map(j => j.originalTo).concat([join.root]);
6266
}

0 commit comments

Comments
 (0)