Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement google sheets external data table type for bigquery datastore #44

Closed
vianhazman opened this issue Jul 25, 2021 · 2 comments · Fixed by #45
Closed

Implement google sheets external data table type for bigquery datastore #44

vianhazman opened this issue Jul 25, 2021 · 2 comments · Fixed by #45
Labels
enhancement New feature or request

Comments

@vianhazman
Copy link
Member

Enable google sheets externaltables management for BigQuery datastore via Optimus.

User should be able to:

  • Create a google sheets external table by specifying sheets URI
  • Define schema for the google sheets external table
  • Use metadata management feature such as Labels

The implementation should be able to extend other BigQuery supported external data sources for future development.
About BigQuery external tables: https://cloud.google.com/bigquery/docs/external-tables

@kushsharma
Copy link
Member

@vianhazman this looks like a nice feature to have and I can see you have already opened a PR for it. Can you also provide a sample of YAML specification that it will use?

@vianhazman
Copy link
Member Author

Sure, the following specification is specific for Google Sheets source. In the future, we can add more source types such as Google Drive and GCS with a different configuration in the config property:

name: project.dataset.table
type: external_table
version: 1
spec:
  schema:
  - name: column_name
    type: STRING
  source: 
    type: google_sheets
    uris:
    - https://docs.google.com/spreadsheets/d/spreadsheet_id
    config:
      range: Sheet1!A1:B4
      skip_leading_rows: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants