Skip to content

Commit 343afc5

Browse files
committed
just code polish
1 parent e8c89f4 commit 343afc5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/cubejs-schema-compiler/src/compiler/YamlCompiler.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,14 @@ export class YamlCompiler {
128128
cubeObj.dimensions = this.yamlArrayToObj(cubeObj.dimensions || [], 'dimension', errorsReport);
129129
cubeObj.segments = this.yamlArrayToObj(cubeObj.segments || [], 'segment', errorsReport);
130130
cubeObj.preAggregations = this.yamlArrayToObj(cubeObj.preAggregations || [], 'preAggregation', errorsReport);
131+
cubeObj.hierarchies = this.yamlArrayToObj(cubeObj.hierarchies || [], 'hierarchies', errorsReport);
131132

132133
cubeObj.joins = cubeObj.joins || []; // For edge cases where joins are not defined/null
133134
if (!Array.isArray(cubeObj.joins)) {
134135
errorsReport.error('joins must be defined as array');
135136
cubeObj.joins = [];
136137
}
137138

138-
cubeObj.hierarchies = this.yamlArrayToObj(cubeObj.hierarchies || [], 'hierarchies', errorsReport);
139-
140139
return this.transpileYaml(cubeObj, [], cubeObj.name, errorsReport);
141140
}
142141

0 commit comments

Comments
 (0)