@malloydata/malloy 0.0.24-dev230228224434 → 0.0.24-dev230302180647
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.
|
@@ -302,7 +302,7 @@ class BetaExpression extends Testable {
|
|
|
302
302
|
compile() {
|
|
303
303
|
const exprAst = this.ast();
|
|
304
304
|
if (exprAst instanceof expression_def_1.ExpressionDef) {
|
|
305
|
-
const aStruct = this.internalModel.contents
|
|
305
|
+
const aStruct = this.internalModel.contents['ab'];
|
|
306
306
|
if (aStruct.type === 'struct') {
|
|
307
307
|
const tstFS = new static_space_1.StaticSpace(aStruct);
|
|
308
308
|
const exprDef = exprAst.getExpression(tstFS);
|
|
@@ -1066,7 +1066,7 @@ describe('expressions', () => {
|
|
|
1066
1066
|
const modelSrc = 'query: z is a -> { group_by: x is 1+(3/4) }';
|
|
1067
1067
|
const m = new BetaModel(modelSrc);
|
|
1068
1068
|
expect(m).modelCompiled();
|
|
1069
|
-
const queryDef = (_b = (_a = m.translate()) === null || _a === void 0 ? void 0 : _a.translated) === null || _b === void 0 ? void 0 : _b.modelDef.contents
|
|
1069
|
+
const queryDef = (_b = (_a = m.translate()) === null || _a === void 0 ? void 0 : _a.translated) === null || _b === void 0 ? void 0 : _b.modelDef.contents['z'];
|
|
1070
1070
|
expect(queryDef).toBeDefined();
|
|
1071
1071
|
expect(queryDef === null || queryDef === void 0 ? void 0 : queryDef.type).toBe('query');
|
|
1072
1072
|
if (queryDef && queryDef.type === 'query') {
|
|
@@ -136,7 +136,7 @@ const mockSchema = {
|
|
|
136
136
|
as: 'airports',
|
|
137
137
|
},
|
|
138
138
|
};
|
|
139
|
-
exports.aTableDef = mockSchema
|
|
139
|
+
exports.aTableDef = mockSchema['aTable'];
|
|
140
140
|
/**
|
|
141
141
|
* When translating partial trees, there will not be a document node
|
|
142
142
|
* to handle namespace requests, this stands in for document in that case.
|