Skip to content

Commit

Permalink
add logs when no records to push
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Dec 17, 2023
1 parent 533d6c9 commit 9611710
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flow/connectors/bigquery/qrep_avro_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ func (s *QRepAvroSyncMethod) writeToStage(
defer avroFile.Cleanup()

if avroFile.NumRecords == 0 {
log.WithFields(log.Fields{
"batchOrPartitionID": syncID,
}).Infof("no records to write to file %s", avroFile.FilePath)
return 0, nil
}
log.WithFields(log.Fields{
Expand Down

0 comments on commit 9611710

Please sign in to comment.