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 6b56293 commit f67c33bCopy full SHA for f67c33b
packages/cubejs-schema-compiler/src/adapter/BaseQuery.js
@@ -1983,8 +1983,9 @@ export class BaseQuery {
1983
if (R.any(cubeName => keyCubeName !== cubeName, cubes)) {
1984
const measuresJoin = this.joinGraph.buildJoin(joinHints);
1985
if (measuresJoin.multiplicationFactor[keyCubeName]) {
1986
+ const measureName = measure.isMemberExpression ? measure.expressionName : measure.measure;
1987
throw new UserError(
- `'${measure.measure}' references cubes that lead to row multiplication. Please rewrite it using sub query.`
1988
+ `'${measureName}' references cubes that lead to row multiplication. Please rewrite it using sub query.`
1989
);
1990
}
1991
return true;
0 commit comments