File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/cubejs-prestodb-driver/src Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -113,10 +113,14 @@ export class PrestoDriver extends BaseDriver implements DriverInterface {
113
113
secretAccessKey : getEnv ( 'dbExportBucketAwsSecret' , { dataSource } ) ,
114
114
exportBucketRegion : getEnv ( 'dbExportBucketAwsRegion' , { dataSource } ) ,
115
115
credentials : getEnv ( 'dbExportGCSCredentials' , { dataSource } ) ,
116
+ queryTimeout : getEnv ( 'dbQueryTimeout' , { dataSource } ) ,
116
117
...config
117
118
} ;
118
119
this . catalog = this . config . catalog ;
119
- this . client = new presto . Client ( this . config ) ;
120
+ this . client = new presto . Client ( {
121
+ timeout : this . config . queryTimeout ,
122
+ ...this . config ,
123
+ } ) ;
120
124
}
121
125
122
126
public async testConnection ( ) : Promise < void > {
@@ -319,7 +323,7 @@ export class PrestoDriver extends BaseDriver implements DriverInterface {
319
323
320
324
const { schema, tableName } = this . splitTableFullName ( params . tableFullName ) ;
321
325
const tableWithCatalogAndSchema = `${ this . config . catalog } .${ schema } .${ tableName } ` ;
322
-
326
+
323
327
const protocol = {
324
328
gcs : 'gs' ,
325
329
s3 : this . config . exportBucketS3AdvancedFS ? 's3a' : 's3'
You can’t perform that action at this time.
0 commit comments