@malloydata/db-trino 0.0.308 → 0.0.310

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Malloy
2
2
 
3
- Malloy is an experimental language for describing data relationships and transformations. It is both a semantic modeling language and a querying language that runs queries against a relational database. Malloy currently connects to BigQuery and Postgres, and natively supports DuckDB. We've built a Visual Studio Code extension to facilitate building Malloy data models, querying and transforming data, and creating simple visualizations and dashboards.
3
+ Malloy is a modern open source language for describing data relationships and transformations. It is both a semantic modeling language and a querying language that runs queries against a relational database. Malloy currently connects to BigQuery and Postgres, and natively supports DuckDB. We've built a Visual Studio Code extension to facilitate building Malloy data models, querying and transforming data, and creating simple visualizations and dashboards.
4
4
 
5
5
  ## This package
6
6
 
@@ -164,9 +164,8 @@ class TrinoPrestoConnection extends connection_1.BaseConnection {
164
164
  else if ((0, malloy_1.isRepeatedRecord)(field)) {
165
165
  retRow[field.name] = this.convertNest(field.fields, row[i]);
166
166
  }
167
- else if (field.type === 'array') {
168
- // mtoy todo don't understand this line actually
169
- retRow[field.name] = this.convertNest(field.fields.slice(0, 1), row[i]);
167
+ else if ((0, malloy_1.isBasicArray)(field)) {
168
+ retRow[field.name] = this.unpackArray([], row[i]);
170
169
  }
171
170
  else {
172
171
  retRow[field.name] = (_a = row[i]) !== null && _a !== void 0 ? _a : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/db-trino",
3
- "version": "0.0.308",
3
+ "version": "0.0.310",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,12 +22,12 @@
22
22
  "prepublishOnly": "npm run build"
23
23
  },
24
24
  "dependencies": {
25
- "@malloydata/malloy": "0.0.308",
25
+ "@malloydata/malloy": "0.0.310",
26
26
  "@prestodb/presto-js-client": "^1.0.0",
27
27
  "gaxios": "^4.2.0",
28
28
  "trino-client": "^0.2.2"
29
29
  },
30
- "description": "Malloy is an experimental language for describing data relationships and transformations. It is both a semantic modeling language and a querying language that runs queries against a relational database. Malloy currently connects to BigQuery and Postgres, and natively supports DuckDB. We've built a Visual Studio Code extension to facilitate building Malloy data models, querying and transforming data, and creating simple visualizations and dashboards.",
30
+ "description": "Malloy is a modern open source language for describing data relationships and transformations. It is both a semantic modeling language and a querying language that runs queries against a relational database. Malloy currently connects to BigQuery and Postgres, and natively supports DuckDB. We've built a Visual Studio Code extension to facilitate building Malloy data models, querying and transforming data, and creating simple visualizations and dashboards.",
31
31
  "bugs": {
32
32
  "url": "https://github.com/malloydata/malloy/issues"
33
33
  },