@malloydata/db-trino 0.0.313 → 0.0.314

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.
@@ -271,7 +271,7 @@ class TrinoPrestoConnection extends connection_1.BaseConnection {
271
271
  structDefFromSchema(rows, structDef) {
272
272
  for (const row of rows) {
273
273
  const name = row[0];
274
- const type = row[4] || row[1];
274
+ const type = row[4] && typeof row[4] === 'string' ? row[4] : row[1];
275
275
  const malloyType = (0, malloy_1.mkFieldDef)(this.malloyTypeFromTrinoType(type), name);
276
276
  structDef.fields.push((0, malloy_1.mkFieldDef)(malloyType, name));
277
277
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/db-trino",
3
- "version": "0.0.313",
3
+ "version": "0.0.314",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "prepublishOnly": "npm run build"
23
23
  },
24
24
  "dependencies": {
25
- "@malloydata/malloy": "0.0.313",
25
+ "@malloydata/malloy": "0.0.314",
26
26
  "@prestodb/presto-js-client": "^1.0.0",
27
27
  "gaxios": "^4.2.0",
28
28
  "trino-client": "^0.2.2"