Преглед изворни кода

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

Signed-off-by: Yannik Daellenbach <git@daellenbach.org>
Yannik Dällenbach пре 4 недеља
родитељ
комит
6766d4cc67
1 измењених фајлова са 2 додато и 0 уклоњено
  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