728x90
반응형
Python Client for Google BigQuery
Example Usage
구글 GCS 서비스 계정 json 파일을 사용하여 BigQuery에 쿼리 실행하기
from google.cloud import bigquery
CREDS = 'test_service_account.json'
client = bigquery.Client.from_service_account_json(json_credentials_path=CREDS)
job = client.query('select * from dataset1.mytable')
for row in job.result():
print(row)
Reference
반응형
'[Google] > [BQ] BigQuery' 카테고리의 다른 글
[BQ] BigQuery partition limit (0) | 2023.07.05 |
---|---|
[BQ] 쿼리 비용 Tip (0) | 2023.06.21 |
[BigQeury] IFNULL vs. NULLIF (0) | 2023.04.23 |
[Google] BigQuery에 대하여 (0) | 2023.04.15 |
[BigQuery] NET.HOST() (0) | 2023.04.15 |