@malloydata/malloy 0.0.195 → 0.0.196-dev241007190115
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.
|
@@ -355,9 +355,6 @@ class MalloyToAST extends AbstractParseTreeVisitor_1.AbstractParseTreeVisitor {
|
|
|
355
355
|
this.contextError(pcx, 'missing-on-in-join-many', 'join_many: requires ON expression');
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
else if (join instanceof ast.KeyJoin) {
|
|
359
|
-
this.contextError(pcx, 'foreign-key-in-join-many', 'Foreign key join not legal in join_many:');
|
|
360
|
-
}
|
|
361
358
|
}
|
|
362
359
|
}
|
|
363
360
|
const joinMany = new ast.JoinStatement(joins);
|
package/dist/lang/parse-log.d.ts
CHANGED
|
@@ -290,7 +290,6 @@ type MessageParameterTypes = {
|
|
|
290
290
|
'failed-to-parse-time-literal': string;
|
|
291
291
|
'table-function': string;
|
|
292
292
|
'missing-on-in-join-many': string;
|
|
293
|
-
'foreign-key-in-join-many': string;
|
|
294
293
|
'join-statement-in-view': string;
|
|
295
294
|
'unknown-matrix-operation': string;
|
|
296
295
|
'declare': string;
|
|
@@ -143,9 +143,6 @@ describe('source:', () => {
|
|
|
143
143
|
test('many on', () => {
|
|
144
144
|
expect('source: nab is a extend { join_many: b on astr = b.astr }').toTranslate();
|
|
145
145
|
});
|
|
146
|
-
test('many with', () => {
|
|
147
|
-
expect((0, test_translator_1.model) `source: nab is a extend { ${'join_many: b with astr'} }`).toLog((0, test_translator_1.errorMessage)('Foreign key join not legal in join_many:'));
|
|
148
|
-
});
|
|
149
146
|
test('many is on', () => {
|
|
150
147
|
expect('source: y is a extend { join_many: x is b on astr = x.astr }').toTranslate();
|
|
151
148
|
});
|
|
@@ -187,6 +184,13 @@ describe('source:', () => {
|
|
|
187
184
|
source: awith is a extend {
|
|
188
185
|
join_one: has_primary_key is a -> { group_by: one_val is astr } with astr
|
|
189
186
|
}
|
|
187
|
+
`).toTranslate();
|
|
188
|
+
});
|
|
189
|
+
test('join-many: with is ok', () => {
|
|
190
|
+
expect(`
|
|
191
|
+
source: awithmany is a extend {
|
|
192
|
+
join_many: manyb is a with astr
|
|
193
|
+
}
|
|
190
194
|
`).toTranslate();
|
|
191
195
|
});
|
|
192
196
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const MALLOY_VERSION = "0.0.
|
|
1
|
+
export declare const MALLOY_VERSION = "0.0.196";
|
package/dist/version.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MALLOY_VERSION = void 0;
|
|
4
4
|
// generated with 'generate-version-file' script; do not edit manually
|
|
5
|
-
exports.MALLOY_VERSION = '0.0.
|
|
5
|
+
exports.MALLOY_VERSION = '0.0.196';
|
|
6
6
|
//# sourceMappingURL=version.js.map
|