Skip to content

Commit

Permalink
fix: TypeError: Cannot read property 'timeDimensions' of null
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Apr 11, 2020
1 parent 2253f31 commit 7d3329b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cubejs-api-gateway/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ class ApiGateway {
});
const loadRequestSQLStarted = new Date();
const normalizedQuery = await this.queryTransformer(normalizeQuery(query), context);
if (!normalizedQuery) {
throw new Error(`queryTransformer returned null query. Please check your queryTransformer implementation`);
}
const [compilerSqlResult, metaConfigResult] = await Promise.all([
this.getCompilerApi(context).getSql(coerceForSqlQuery(normalizedQuery, context)),
this.getCompilerApi(context).metaConfig({ requestId: context.requestId })
Expand Down

0 comments on commit 7d3329b

Please sign in to comment.