@malloydata/db-trino 0.0.138-dev240328203849 → 0.0.138-dev240331175328
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 +3 -3
- package/package.json +1 -1
package/dist/trino_connection.js
CHANGED
|
@@ -80,7 +80,7 @@ class TrinoConnection {
|
|
|
80
80
|
// TODO: check user is set.
|
|
81
81
|
this.trino = trino_client_1.Trino.create({
|
|
82
82
|
server: config.server,
|
|
83
|
-
catalog: config.catalog,
|
|
83
|
+
catalog: 'malloy_demo', //config.catalog,
|
|
84
84
|
schema: config.schema,
|
|
85
85
|
auth: new trino_client_1.BasicAuth(config.user, config.password),
|
|
86
86
|
});
|
|
@@ -203,7 +203,7 @@ class TrinoConnection {
|
|
|
203
203
|
}
|
|
204
204
|
// TODO(figutierrez): Remove.
|
|
205
205
|
// eslint-disable-next-line no-console
|
|
206
|
-
console.log(`ROWS: ${JSON.stringify(malloyRows)} ${malloyRows.length}`);
|
|
206
|
+
// console.log(`ROWS: ${JSON.stringify(malloyRows)} ${malloyRows.length}`);
|
|
207
207
|
// TODO: handle totalrows.
|
|
208
208
|
return { rows: malloyRows, totalRows: malloyRows.length };
|
|
209
209
|
}
|
|
@@ -227,7 +227,7 @@ class TrinoConnection {
|
|
|
227
227
|
const errors = {};
|
|
228
228
|
for (const tableKey in missing) {
|
|
229
229
|
let inCache = this.schemaCache.get(tableKey);
|
|
230
|
-
const tablePath = missing[tableKey]
|
|
230
|
+
const tablePath = missing[tableKey];
|
|
231
231
|
if (!inCache ||
|
|
232
232
|
(refreshTimestamp && refreshTimestamp > inCache.timestamp)) {
|
|
233
233
|
const timestamp = refreshTimestamp !== null && refreshTimestamp !== void 0 ? refreshTimestamp : Date.now();
|