Skip to content

Commit e23f302

Browse files
committed
fix: Error: TypeError: Cannot read property ‘externalPreAggregationQuery’ of null
1 parent a916fcc commit e23f302

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/cubejs-server-core/core/CompilerApi.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ class CompilerApi {
7171
query,
7272
dataSource
7373
);
74+
75+
if (!sqlGenerator) {
76+
throw new Error(`Unknown dbType for '${dataSource}' data source: ${dbType}`);
77+
}
7478
}
7579

7680
return compilers.compiler.withQuery(sqlGenerator, () => ({

0 commit comments

Comments
 (0)