@malloydata/malloy-tests 0.0.276-crs-composite-joins-2-250513155820 → 0.0.276

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.
package/package.json CHANGED
@@ -21,14 +21,14 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@jest/globals": "^29.4.3",
24
- "@malloydata/db-bigquery": "0.0.276-crs-composite-joins-2-250513155820",
25
- "@malloydata/db-duckdb": "0.0.276-crs-composite-joins-2-250513155820",
26
- "@malloydata/db-postgres": "0.0.276-crs-composite-joins-2-250513155820",
27
- "@malloydata/db-snowflake": "0.0.276-crs-composite-joins-2-250513155820",
28
- "@malloydata/db-trino": "0.0.276-crs-composite-joins-2-250513155820",
29
- "@malloydata/malloy": "0.0.276-crs-composite-joins-2-250513155820",
30
- "@malloydata/malloy-tag": "0.0.276-crs-composite-joins-2-250513155820",
31
- "@malloydata/render": "0.0.276-crs-composite-joins-2-250513155820",
24
+ "@malloydata/db-bigquery": "0.0.276",
25
+ "@malloydata/db-duckdb": "0.0.276",
26
+ "@malloydata/db-postgres": "0.0.276",
27
+ "@malloydata/db-snowflake": "0.0.276",
28
+ "@malloydata/db-trino": "0.0.276",
29
+ "@malloydata/malloy": "0.0.276",
30
+ "@malloydata/malloy-tag": "0.0.276",
31
+ "@malloydata/render": "0.0.276",
32
32
  "events": "^3.3.0",
33
33
  "jsdom": "^22.1.0",
34
34
  "luxon": "^2.4.0",
@@ -38,5 +38,5 @@
38
38
  "@types/jsdom": "^21.1.1",
39
39
  "@types/luxon": "^2.4.0"
40
40
  },
41
- "version": "0.0.276-crs-composite-joins-2-250513155820"
41
+ "version": "0.0.276"
42
42
  }
@@ -62,6 +62,26 @@ describe.each(runtimes.runtimeList)('%s', (databaseName, runtime) => {
62
62
  run: c -> { group_by: j.f2 }
63
63
  `).malloyResultMatches(runtime, {f2: 2});
64
64
  });
65
+ it('selects correct join', async () => {
66
+ await expect(`
67
+ ##! experimental.composite_sources
68
+ source: state_facts is ${databaseName}.table('malloytest.state_facts')
69
+ source: s1 is state_facts extend {
70
+ join_one: j is state_facts extend {
71
+ dimension: jf is 1
72
+ } on true
73
+ dimension: f1 is 1
74
+ }
75
+ source: s2 is state_facts extend {
76
+ join_one: j is state_facts extend {
77
+ dimension: jf is 2
78
+ } on true
79
+ dimension: f2 is 2
80
+ }
81
+ source: c is compose(s1, s2)
82
+ run: c -> { group_by: j.jf, f2 }
83
+ `).malloyResultMatches(runtime, {f2: 2, jf: 2});
84
+ });
65
85
  it('join on depends on selected join', async () => {
66
86
  await expect(`
67
87
  ##! experimental.composite_sources