Skip to content

Commit

Permalink
[gcp] "GCP Cloud BigQuery Invalid table-valued function EXTERNAL_QUER…
Browse files Browse the repository at this point in the history
…Y Failed to connect 에러 해결" 글 포스팅하였다.
  • Loading branch information
apeltop committed Apr 7, 2024
1 parent 116850f commit a6aa990
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions _posts/gcp/2024-04-07-gcp-bigquery-connect-to-cloudsql-error.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: GCP Cloud BigQuery Invalid table-valued function EXTERNAL_QUERY Failed to connect 에러 해결
author: sunshine@ptokos.com
categories: [gcp]
---

## 해결 방법
> Service Account 에서 Cloud SQL Client 권한을 추가
## 문제 상황
BigQuery 에서 Cloud SQL 에 연결 한 후 쿼리를 실행하려고하니 _Invalid table-valued function EXTERNAL_QUERY Failed to connect to the Cloud SQL instance_ 이 발생

![1.png](/assets/img/gcp/gcp-bigquery-connect-to-cloudsql-error-1.png)

![2.png](/assets/img/gcp/gcp-bigquery-connect-to-cloudsql-error-2.png)

## 해결 과정
Connection Info 에 있는 Service Account 를 확인한다.

![3.png](/assets/img/gcp/gcp-bigquery-connect-to-cloudsql-error-3.png)

IAM & Admin 에서 해당 Service Account 에 Cloud SQL Client 권한을 추가한다.

![4.png](/assets/img/gcp/gcp-bigquery-connect-to-cloudsql-error-4.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a6aa990

Please sign in to comment.