Skip to content

Commit 4a1503e

Browse files
committed
fix(@cubejs-backend/snowflake-driver): OperationFailedError: SQL compilation error: invalid value [?] for parameter 'STATEMENT_TIMEOUT_IN_SECONDS'
1 parent c93ae12 commit 4a1503e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-snowflake-driver/src/SnowflakeDriver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export class SnowflakeDriver extends BaseDriver implements DriverInterface {
257257
);
258258

259259
await this.execute(connection, 'ALTER SESSION SET TIMEZONE = \'UTC\'', [], false);
260-
await this.execute(connection, 'ALTER SESSION SET STATEMENT_TIMEOUT_IN_SECONDS = ?', [this.config.executionTimeout], false);
260+
await this.execute(connection, `ALTER SESSION SET STATEMENT_TIMEOUT_IN_SECONDS = ${this.config.executionTimeout}`, [], false);
261261

262262
return connection;
263263
} catch (e) {

0 commit comments

Comments
 (0)