@malloydata/db-bigquery 0.0.94 → 0.0.95-dev231024220124

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.
@@ -85,16 +85,16 @@ describe('db:BigQuery', () => {
85
85
  it.todo('gets table structdefs');
86
86
  it('runs a Malloy query', async () => {
87
87
  const sql = await runtime
88
- .loadModel("source: carriers is table('malloy-data.faa.carriers') { measure: carrier_count is count() }")
89
- .loadQuery('query: carriers -> { aggregate: carrier_count }')
88
+ .loadModel("source: carriers is bigquery.table('malloy-data.faa.carriers') extend { measure: carrier_count is count() }")
89
+ .loadQuery('run: carriers -> { aggregate: carrier_count }')
90
90
  .getSQL();
91
91
  const res = await bq.runSQL(sql);
92
92
  expect(res.rows[0]['carrier_count']).toBe(21);
93
93
  });
94
94
  it('streams a Malloy query for download', async () => {
95
95
  const sql = await runtime
96
- .loadModel("source: carriers is table('malloy-data.faa.carriers') { measure: carrier_count is count() }")
97
- .loadQuery('query: carriers -> { group_by: name }')
96
+ .loadModel("source: carriers is bigquery.table('malloy-data.faa.carriers') extend { measure: carrier_count is count() }")
97
+ .loadQuery('run: carriers -> { group_by: name }')
98
98
  .getSQL();
99
99
  const res = await bq.downloadMalloyQuery(sql);
100
100
  return new Promise(resolve => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/db-bigquery",
3
- "version": "0.0.94",
3
+ "version": "0.0.95-dev231024220124",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "@google-cloud/bigquery": "^5.5.0",
26
26
  "@google-cloud/common": "^3.6.0",
27
27
  "@google-cloud/paginator": "^4.0.1",
28
- "@malloydata/malloy": "^0.0.94",
28
+ "@malloydata/malloy": "^0.0.95-dev231024220124",
29
29
  "gaxios": "^4.2.0"
30
30
  }
31
31
  }