@malloydata/malloy 0.0.225-dev250103194727 → 0.0.225-dev250110175536
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -119,7 +119,6 @@ class DynamicSpace extends static_space_1.StaticSpace {
|
|
|
119
119
|
const fields = [];
|
|
120
120
|
const joins = [];
|
|
121
121
|
const turtles = [];
|
|
122
|
-
const fixupJoins = [];
|
|
123
122
|
for (const [name, spaceEntry] of this.entries()) {
|
|
124
123
|
if (spaceEntry instanceof struct_space_field_base_1.StructSpaceFieldBase) {
|
|
125
124
|
joins.push([name, spaceEntry]);
|
|
@@ -139,7 +138,7 @@ class DynamicSpace extends static_space_1.StaticSpace {
|
|
|
139
138
|
if (!error_factory_1.ErrorFactory.didCreate(joinStruct)) {
|
|
140
139
|
fieldIndices.set(name, this.sourceDef.fields.length);
|
|
141
140
|
this.sourceDef.fields.push(joinStruct);
|
|
142
|
-
|
|
141
|
+
field.join.fixupJoinOn(this, joinStruct);
|
|
143
142
|
}
|
|
144
143
|
}
|
|
145
144
|
else {
|
|
@@ -155,10 +154,6 @@ class DynamicSpace extends static_space_1.StaticSpace {
|
|
|
155
154
|
// }
|
|
156
155
|
}
|
|
157
156
|
}
|
|
158
|
-
// If we have join expressions, we need to now go back and fill them in
|
|
159
|
-
for (const [join, missingOn] of fixupJoins) {
|
|
160
|
-
join.fixupJoinOn(this, missingOn);
|
|
161
|
-
}
|
|
162
157
|
// Add access modifiers at the end so views don't obey them
|
|
163
158
|
for (const [name, access] of this.newAccessModifiers) {
|
|
164
159
|
const index = this.sourceDef.fields.findIndex(f => { var _a; return (_a = f.as) !== null && _a !== void 0 ? _a : f.name === name; });
|