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 @@ -35,6 +35,7 @@ export type PrestoDriverExportBucket = {
3535 accessKeyId ?: string ,
3636 secretAccessKey ?: string ,
3737 exportBucketRegion ?: string ,
38+ exportBucketS3AdvancedFS ?: boolean ,
3839 exportBucketCsvEscapeSymbol ?: string ,
3940} ;
4041
@@ -318,10 +319,11 @@ export class PrestoDriver extends BaseDriver implements DriverInterface {
318319
319320 const { schema, tableName } = this . splitTableFullName ( params . tableFullName ) ;
320321 const tableWithCatalogAndSchema = `${ this . config . catalog } .${ schema } .${ tableName } ` ;
321- let protocol = bucketType === 'gcs' ? 'gs' : bucketType ;
322- if ( bucketType === 's3' ) {
323- protocol = 's3a' ;
324- }
322+
323+ const protocol = {
324+ gcs : 'gc' ,
325+ s3 : this . config . exportBucketS3AdvancedFS ? 's3a' : 's3'
326+ } [ bucketType || 'gcs' ] ;
325327
326328 const externalLocation = `${ protocol } ://${ exportBucket } /${ schema } /${ tableName } ` ;
327329 const withParams = `( external_location = '${ externalLocation } ', format = 'CSV')` ;
You can’t perform that action at this time.
0 commit comments