Skip to content

Commit

Permalink
unparallel your tests
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Nov 21, 2023
1 parent 5e31c46 commit a9b982f
Show file tree
Hide file tree
Showing 5 changed files with 191 additions and 306 deletions.
4 changes: 2 additions & 2 deletions flow/connectors/bigquery/qrep_avro_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func (s *QRepAvroSyncMethod) writeToStage(
avro.CompressNone, qvalue.QDWHTypeBigQuery)
if s.gcsBucket != "" {
bucket := s.connector.storageClient.Bucket(s.gcsBucket)
avroFilePath = fmt.Sprintf("%s/%s.avro", objectFolder, syncID)
avroFilePath = fmt.Sprintf("%s/%s.avro.snappy", objectFolder, syncID)
obj := bucket.Object(avroFilePath)
w := obj.NewWriter(s.connector.ctx)

Expand All @@ -346,7 +346,7 @@ func (s *QRepAvroSyncMethod) writeToStage(
return 0, fmt.Errorf("failed to create temp dir: %w", err)
}

avroFilePath = fmt.Sprintf("%s/%s.avro", tmpDir, syncID)
avroFilePath = fmt.Sprintf("%s/%s.avro.snappy", tmpDir, syncID)
log.WithFields(log.Fields{
"batchOrPartitionID": syncID,
}).Infof("writing records to local file %s", avroFilePath)
Expand Down
Loading

0 comments on commit a9b982f

Please sign in to comment.