@malloydata/db-trino 0.0.178 → 0.0.179-dev240904021440
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/dist/trino_connection.js +2 -3
- package/package.json +2 -2
package/dist/trino_connection.js
CHANGED
|
@@ -528,14 +528,13 @@ class TrinoPrestoConnection extends connection_1.BaseConnection {
|
|
|
528
528
|
const queryResult = await this.client.runSQL(sqlBlock, undefined);
|
|
529
529
|
if (queryResult.error) {
|
|
530
530
|
// TODO: handle.
|
|
531
|
-
throw new Error(
|
|
532
|
-
)}`);
|
|
531
|
+
throw new Error(queryResult.error);
|
|
533
532
|
}
|
|
534
533
|
const rows = (_a = queryResult.rows) !== null && _a !== void 0 ? _a : [];
|
|
535
534
|
this.structDefFromSchema(rows, structDef);
|
|
536
535
|
}
|
|
537
536
|
catch (e) {
|
|
538
|
-
throw new Error(`Could not fetch schema for ${element} ${
|
|
537
|
+
throw new Error(`Could not fetch schema for ${element} ${e instanceof Error ? e.message : e}`);
|
|
539
538
|
}
|
|
540
539
|
return structDef;
|
|
541
540
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/db-trino",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.179-dev240904021440",
|
|
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.
|
|
25
|
+
"@malloydata/malloy": "^0.0.179-dev240904021440",
|
|
26
26
|
"@prestodb/presto-js-client": "^1.0.0",
|
|
27
27
|
"gaxios": "^4.2.0",
|
|
28
28
|
"trino-client": "^0.2.2"
|