Commit f7fdbdb
authored
Updates to
* First pass at allowing translator to accept pre-transalted documents
* Simplify
* Move `queryList` into `ModelDef`
* Change `translationResponse.translated` to `.modelDef`
* Add dependencies to `ModelDef`
* Internally, call sql blocks `sqlSources`
* Add util method to get a child translator
* Keep `fromSources` correctly in sync
* Remove Malloy file that I didn't mean to check in
* Fix hand-written models
* Don't error if a child translator is not present -- that just means its parent was cached and therefore never created
* Add `newlyTranslatedDependencies` util
* Remove unused import
* Add a test for newlyTranslatedDependenciesMalloyTranslator to enable model caching (#2091)1 parent 813b3a6 commit f7fdbdb
File tree
18 files changed
+285
-110
lines changed- packages/malloy/src
- lang
- ast
- statements
- types
- test
- model
- test/src
- databases/bigquery
- models
18 files changed
+285
-110
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | | - | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | 30 | | |
33 | 31 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
500 | 499 | | |
501 | 500 | | |
502 | 501 | | |
503 | | - | |
504 | 502 | | |
505 | 503 | | |
506 | 504 | | |
| |||
518 | 516 | | |
519 | 517 | | |
520 | 518 | | |
521 | | - | |
522 | 519 | | |
523 | 520 | | |
524 | 521 | | |
| |||
547 | 544 | | |
548 | 545 | | |
549 | 546 | | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | 547 | | |
556 | 548 | | |
557 | 549 | | |
558 | 550 | | |
559 | 551 | | |
560 | 552 | | |
561 | 553 | | |
562 | | - | |
563 | | - | |
564 | | - | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
565 | 558 | | |
566 | 559 | | |
567 | 560 | | |
| |||
588 | 581 | | |
589 | 582 | | |
590 | 583 | | |
591 | | - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
592 | 591 | | |
593 | 592 | | |
594 | 593 | | |
| |||
608 | 607 | | |
609 | 608 | | |
610 | 609 | | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | 610 | | |
628 | 611 | | |
629 | 612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments