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 c19fb8a commit ca314a0Copy full SHA for ca314a0
packages/cubejs-schema-compiler/src/adapter/BaseQuery.js
@@ -2191,9 +2191,13 @@ export class BaseQuery {
2191
2192
let index;
2193
2194
- index = this.dimensionsForSelect().findIndex(
2195
- d => equalIgnoreCase(d.dimension, id) || equalIgnoreCase(d.expressionName, id)
2196
- );
+ index = this.dimensionsForSelect()
+ // Not all time dimensions are used in select list, some are just filters,
+ // but they exist in this.timeDimensions, so need to filter them out
2197
+ .filter(d => d.selectColumns())
2198
+ .findIndex(
2199
+ d => equalIgnoreCase(d.dimension, id) || equalIgnoreCase(d.expressionName, id)
2200
+ );
2201
2202
if (index > -1) {
2203
return index + 1;
0 commit comments