Przeglądaj źródła

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

Signed-off-by: Yannik Daellenbach <git@daellenbach.org>
Yannik Dällenbach 1 miesiąc temu
rodzic
commit
6766d4cc67
1 zmienionych plików z 2 dodań i 0 usunięć
  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