@malloydata/malloy 0.0.184 → 0.0.185-dev240919025438
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.
|
@@ -242,7 +242,7 @@ describe('translation need error locations', () => {
|
|
|
242
242
|
});
|
|
243
243
|
test('table struct error location', () => {
|
|
244
244
|
const source = (0, test_translator_1.model) `
|
|
245
|
-
source: bad_explore is ${"_db_.table('
|
|
245
|
+
source: bad_explore is ${"_db_.table('malloydata-org.bad.table')"}
|
|
246
246
|
`;
|
|
247
247
|
const m = source.translator;
|
|
248
248
|
const result = m.translate();
|
|
@@ -3316,12 +3316,12 @@ class QueryStruct extends QueryNode {
|
|
|
3316
3316
|
}
|
|
3317
3317
|
getQueryFieldReference(name, refAnnoatation) {
|
|
3318
3318
|
const field = this.getQueryFieldByName(name);
|
|
3319
|
-
if (refAnnoatation) {
|
|
3319
|
+
if (refAnnoatation !== undefined) {
|
|
3320
3320
|
// Made the field object from the source, but the annotations were computed by the compiler
|
|
3321
3321
|
// and have noth the source and reference annotations included, use those.
|
|
3322
3322
|
const newDef = { ...field.fieldDef };
|
|
3323
3323
|
newDef.annotation = refAnnoatation;
|
|
3324
|
-
|
|
3324
|
+
return this.makeQueryField(newDef);
|
|
3325
3325
|
}
|
|
3326
3326
|
return field;
|
|
3327
3327
|
}
|