Skip to content

Commit d98511c

Browse files
committed
cast name to lower for __cubeJoinField case
1 parent a606030 commit d98511c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cubejs-schema-compiler/src/adapter/BaseQuery.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2646,7 +2646,8 @@ export class BaseQuery {
26462646
}
26472647
// TODO: https://github.com/cube-js/cube.js/issues/4019
26482648
// use single underscore for pre-aggregations to avoid fail of pre-aggregation name replace
2649-
if (name === '__user' || name === '__cubejoinfield') {
2649+
const lowercaseName = name.toLowerCase();
2650+
if (lowercaseName === '__user' || lowercaseName === '__cubejoinfield') {
26502651
return name;
26512652
}
26522653
return inflection.underscore(name).replace(/\./g, isPreAggregationName ? '_' : '__');

0 commit comments

Comments
 (0)