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 158bd10 commit 5bef81bCopy full SHA for 5bef81b
packages/cubejs-server-core/core/CompilerApi.js
@@ -53,6 +53,9 @@ class CompilerApi {
53
const dbType = this.getDbType('default');
54
const compilers = await this.getCompilers({ requestId: query.requestId });
55
let sqlGenerator = this.createQuery(compilers, dbType, query);
56
+ if (!sqlGenerator) {
57
+ throw new Error(`Unknown dbType: ${dbType}`);
58
+ }
59
60
const dataSource = compilers.compiler.withQuery(sqlGenerator, () => sqlGenerator.dataSource);
61
0 commit comments