Skip to content

Commit d0554d6

Browse files
authored
feat(snowflake-driver): Add queryTag connection parameter (#9889)
1 parent 90c5838 commit d0554d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ interface SnowflakeDriverOptions {
165165
identIgnoreCase?: boolean,
166166
application: string,
167167
readOnly?: boolean,
168+
queryTag?: string,
168169

169170
/**
170171
* The export bucket CSV file escape symbol.
@@ -440,6 +441,10 @@ export class SnowflakeDriver extends BaseDriver implements DriverInterface {
440441
resultPrefetch: this.config.resultPrefetch,
441442
};
442443

444+
if (this.config.queryTag) {
445+
config.queryTag = this.config.queryTag;
446+
}
447+
443448
if (this.config.authenticator?.toUpperCase() === 'OAUTH') {
444449
config.token = this.config.oauthToken || await this.readOAuthToken();
445450
} else if (this.config.authenticator?.toUpperCase() === 'SNOWFLAKE_JWT') {

0 commit comments

Comments
 (0)