Explorar o código

Set `location` on BigQuery `Query` (#3815)

Signed-off-by: Yannik Daellenbach <git@daellenbach.org>
Yannik Dällenbach hai 1 mes
pai
achega
6766d4cc67
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      pkg/cloud/gcp/bigqueryquerier.go

+ 2 - 0
pkg/cloud/gcp/bigqueryquerier.go

@@ -45,6 +45,8 @@ func (bqq *BigQueryQuerier) Query(ctx context.Context, queryStr string) (*bigque
 	}
 
 	query := client.Query(queryStr)
+	query.Location = client.Location
+
 	iter, err := query.Read(ctx)
 
 	// If result is empty and connection status is not already successful update status to missing data