File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/cubejs-prestodb-driver/src Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -365,10 +365,12 @@ export class PrestoDriver extends BaseDriver implements DriverInterface {
365365 return this . extractFilesFromGCS ( { credentials : this . config . credentials } , exportBucket , `${ schema } /${ tableName } ` ) ;
366366 case 's3' :
367367 return this . extractUnloadedFilesFromS3 ( {
368- credentials : {
369- accessKeyId : this . config . accessKeyId || '' ,
370- secretAccessKey : this . config . secretAccessKey || '' ,
371- } ,
368+ credentials : this . config . accessKeyId && this . config . secretAccessKey
369+ ? {
370+ accessKeyId : this . config . accessKeyId ,
371+ secretAccessKey : this . config . secretAccessKey ,
372+ }
373+ : undefined ,
372374 region : this . config . exportBucketRegion ,
373375 } ,
374376 exportBucket , `${ schema } /${ tableName } ` ) ;
You can’t perform that action at this time.
0 commit comments