浏览代码

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

Signed-off-by: Yannik Daellenbach <git@daellenbach.org>
Yannik Dällenbach 2 月之前
父节点
当前提交
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