@malloydata/db-trino 0.0.222-dev241212021944 → 0.0.222-dev241212190052
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
CHANGED
|
@@ -326,7 +326,7 @@ class TrinoPrestoConnection extends connection_1.BaseConnection {
|
|
|
326
326
|
const innerName = parts[1].replace(/^"(.+(?="$))"$/, '$1');
|
|
327
327
|
const innerTrinoType = parts[2];
|
|
328
328
|
const innerMalloyType = this.malloyTypeFromTrinoType(innerName, innerTrinoType);
|
|
329
|
-
recordType.fields.push((0, malloy_1.mkFieldDef)(innerMalloyType, innerName
|
|
329
|
+
recordType.fields.push((0, malloy_1.mkFieldDef)(innerMalloyType, innerName));
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
return recordType;
|
|
@@ -339,7 +339,7 @@ class TrinoPrestoConnection extends connection_1.BaseConnection {
|
|
|
339
339
|
const type = row[4] || row[1];
|
|
340
340
|
const malloyType = this.malloyTypeFromTrinoType(name, type);
|
|
341
341
|
// console.log('>', row, '\n<', malloyType);
|
|
342
|
-
structDef.fields.push((0, malloy_1.mkFieldDef)(malloyType, name
|
|
342
|
+
structDef.fields.push((0, malloy_1.mkFieldDef)(malloyType, name));
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
async loadSchemaForSqlBlock(sqlBlock, structDef, element) {
|
|
@@ -475,7 +475,7 @@ class PrestoExplainParser extends malloy_1.TinyParser {
|
|
|
475
475
|
const name = fieldNames[nameIndex];
|
|
476
476
|
this.next('id', ':');
|
|
477
477
|
const nextType = this.typeDef();
|
|
478
|
-
fields.push((0, malloy_1.mkFieldDef)(nextType, name
|
|
478
|
+
fields.push((0, malloy_1.mkFieldDef)(nextType, name));
|
|
479
479
|
const sep = this.next();
|
|
480
480
|
if (sep.text === ',') {
|
|
481
481
|
continue;
|
|
@@ -500,7 +500,7 @@ class PrestoExplainParser extends malloy_1.TinyParser {
|
|
|
500
500
|
for (;;) {
|
|
501
501
|
const name = this.next('quoted_name');
|
|
502
502
|
const getDef = this.typeDef();
|
|
503
|
-
fields.push((0, malloy_1.mkFieldDef)(getDef, name.text
|
|
503
|
+
fields.push((0, malloy_1.mkFieldDef)(getDef, name.text));
|
|
504
504
|
const sep = this.next();
|
|
505
505
|
if (sep.text === ')') {
|
|
506
506
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/db-trino",
|
|
3
|
-
"version": "0.0.222-
|
|
3
|
+
"version": "0.0.222-dev241212190052",
|
|
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.222-
|
|
25
|
+
"@malloydata/malloy": "^0.0.222-dev241212190052",
|
|
26
26
|
"@prestodb/presto-js-client": "^1.0.0",
|
|
27
27
|
"gaxios": "^4.2.0",
|
|
28
28
|
"trino-client": "^0.2.2"
|