@malloydata/db-bigquery 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.
@@ -71,11 +71,11 @@ describe('db:BigQuery', () => {
71
71
  expect(res.rows[0]['t']).toBe(1);
72
72
  });
73
73
  it('costs a SQL query', async () => {
74
- const res = await bq.estimateQueryCost('SELECT * FROM malloy-data.faa.airports');
74
+ const res = await bq.estimateQueryCost('SELECT * FROM malloydata-org.malloytest.airports');
75
75
  expect(res.queryCostBytes).toBe(3029200);
76
76
  });
77
77
  it('gets table schema', async () => {
78
- const res = await bq.getTableFieldSchema('malloy-data.faa.carriers');
78
+ const res = await bq.getTableFieldSchema('malloydata-org.malloytest.carriers');
79
79
  expect(res.schema).toStrictEqual({
80
80
  fields: [
81
81
  { name: 'code', type: 'STRING' },
@@ -87,7 +87,7 @@ describe('db:BigQuery', () => {
87
87
  it.todo('gets table structdefs');
88
88
  it('runs a Malloy query', async () => {
89
89
  const sql = await runtime
90
- .loadModel("source: carriers is bigquery.table('malloy-data.faa.carriers') extend { measure: carrier_count is count() }")
90
+ .loadModel("source: carriers is bigquery.table('malloydata-org.malloytest.carriers') extend { measure: carrier_count is count() }")
91
91
  .loadQuery('run: carriers -> { aggregate: carrier_count }')
92
92
  .getSQL();
93
93
  const res = await bq.runSQL(sql);
@@ -95,7 +95,7 @@ describe('db:BigQuery', () => {
95
95
  });
96
96
  it('streams a Malloy query for download', async () => {
97
97
  const sql = await runtime
98
- .loadModel("source: carriers is bigquery.table('malloy-data.faa.carriers') extend { measure: carrier_count is count() }")
98
+ .loadModel("source: carriers is bigquery.table('malloydata-org.malloytest.carriers') extend { measure: carrier_count is count() }")
99
99
  .loadQuery('run: carriers -> { group_by: name }')
100
100
  .getSQL();
101
101
  const res = await bq.downloadMalloyQuery(sql);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/db-bigquery",
3
- "version": "0.0.184",
3
+ "version": "0.0.185-dev240919025438",
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": "^7.3.0",
26
26
  "@google-cloud/common": "^5.0.1",
27
27
  "@google-cloud/paginator": "^5.0.0",
28
- "@malloydata/malloy": "^0.0.184",
28
+ "@malloydata/malloy": "^0.0.185-dev240919025438",
29
29
  "gaxios": "^4.2.0"
30
30
  }
31
31
  }