@lightdash/warehouses 0.2565.0 → 0.2565.2

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.
@@ -400,10 +400,10 @@ class SnowflakeWarehouseClient extends WarehouseBaseClient_1.default {
400
400
  */
401
401
  console.debug('Setting Snowflake session QUOTED_IDENTIFIERS_IGNORE_CASE = FALSE');
402
402
  sqlStatements.push(`ALTER SESSION SET QUOTED_IDENTIFIERS_IGNORE_CASE = FALSE;`);
403
- if (this.credentials.timeoutSeconds !== undefined) {
404
- console.debug(`Setting Snowflake session STATEMENT_TIMEOUT_IN_SECONDS = ${this.credentials.timeoutSeconds}`);
405
- sqlStatements.push(`ALTER SESSION SET STATEMENT_TIMEOUT_IN_SECONDS = ${this.credentials.timeoutSeconds};`);
406
- }
403
+ // Default timeout to 300 seconds if not specified
404
+ const timeoutSeconds = this.credentials.timeoutSeconds ?? 300;
405
+ console.debug(`Setting Snowflake session STATEMENT_TIMEOUT_IN_SECONDS = ${timeoutSeconds}`);
406
+ sqlStatements.push(`ALTER SESSION SET STATEMENT_TIMEOUT_IN_SECONDS = ${timeoutSeconds};`);
407
407
  await this.executeStatements(connection, sqlStatements.join('\n'), sqlStatements.length);
408
408
  }
409
409
  getFieldsFromStatement(stmt) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/warehouses",
3
- "version": "0.2565.0",
3
+ "version": "0.2565.2",
4
4
  "description": "Warehouse connectors for Lightdash",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "snowflake-sdk": "~2.3.4",
27
27
  "ssh2": "^1.14.0",
28
28
  "trino-client": "0.2.9",
29
- "@lightdash/common": "0.2565.0"
29
+ "@lightdash/common": "0.2565.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node-fetch": "^2.6.13",