Skip to content

Commit 2c3e991

Browse files
Nikita-strKSDaemon
authored andcommitted
cast name to lower for __cubeJoinField case
1 parent 1ddf5e7 commit 2c3e991

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
@@ -3473,7 +3473,8 @@ export class BaseQuery {
34733473
}
34743474
// TODO: https://github.com/cube-js/cube.js/issues/4019
34753475
// use single underscore for pre-aggregations to avoid fail of pre-aggregation name replace
3476-
if (name === '__user' || name === '__cubejoinfield') {
3476+
const lowercaseName = name.toLowerCase();
3477+
if (lowercaseName === '__user' || lowercaseName === '__cubejoinfield') {
34773478
return name;
34783479
}
34793480
return inflection.underscore(name).replace(/\./g, isPreAggregationName ? '_' : '__');

0 commit comments

Comments
 (0)