Skip to content

Commit

Permalink
chore: applying 1.19.2 hotfixes to main branch (#4331)
Browse files Browse the repository at this point in the history
  • Loading branch information
achettyiitr committed Jan 18, 2024
1 parent 5276978 commit ec91612
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [1.19.2](https://github.com/rudderlabs/rudder-server/compare/v1.19.1...v1.19.2) (2024-01-18)


### Bug Fixes

* nil load statistics for bigquery ([#4328](https://github.com/rudderlabs/rudder-server/issues/4328)) ([48cd75c](https://github.com/rudderlabs/rudder-server/commit/48cd75cc9ada8a7ad401089e9204ce1e6d81a5f6))

## [1.19.1](https://github.com/rudderlabs/rudder-server/compare/v1.19.0...v1.19.1) (2024-01-16)

Expand Down
7 changes: 5 additions & 2 deletions warehouse/integrations/bigquery/bigquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,15 +439,18 @@ func (bq *BigQuery) loadTableByAppend(

log.Infow("completed loading")

tableStats := &types.LoadTableStats{
RowsInserted: statistics.Load.OutputRows,
tableStats := &types.LoadTableStats{}
if statistics.Load != nil {
tableStats.RowsInserted = statistics.Load.OutputRows
}
response := &loadTableResponse{
partitionDate: partitionDate,
}
return tableStats, response, nil
}

// jobStatistics returns statistics for a job
// In case of rate limit error, it returns empty statistics
func (bq *BigQuery) jobStatistics(
ctx context.Context,
job *bigquery.Job,
Expand Down

0 comments on commit ec91612

Please sign in to comment.