Skip to content

Commit 8a0bb24

Browse files
committed
just code polish
1 parent e8c89f4 commit 8a0bb24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,14 +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);
139139

140140
return this.transpileYaml(cubeObj, [], cubeObj.name, errorsReport);
141141
}

0 commit comments

Comments
 (0)