Google Sheets 커넥터

Google Sheets 커넥터 (Google Sheets connector)

Google Sheets 커넥터는 Google Sheets 스프레드시트를 Trino의 테이블로 읽고 쓸 수 있게 해 줘요.

출처: 문서

본문

설정 (Configuration)

gsheets 커넥터를 example 카탈로그로 마운트하려면 다음 내용으로 etc/catalog/example.properties를 만드세요:

connector.name=gsheets
gsheets.credentials-path=/path/to/google-sheets-credentials.json
gsheets.metadata-sheet-id=exampleId

쿼리 예시

테이블 함수로 스프레드시트를 직접 조회할 수 있어요:

SELECT *
FROM
  TABLE(example.system.sheet(
      id => 'googleSheetIdHere'));

특정 범위만 조회하려면 range 인자로 탭과 범위를 지정하세요:

SELECT *
FROM
  TABLE(example.system.sheet(
      id => 'googleSheetIdHere',
      range => 'TabName!A1:B4'));

더 알아보기 (Learn more)

다른 클라우드 데이터 소스 커넥터가 궁금하다면 BigQuery 커넥터 문서를 이어서 읽어 보세요.