Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Add conversion of hyphen into underscore before setting STAGING_DATAS… #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

godajaiko21
Copy link

Hi,

This pull request includes a minor bug fix to correctly create staging dataset.

In com.spotify.spark.bigquery.BigQueryClient, currently STAGING_DATASET_ID config includes STAGING_DATASET_LOCATION string by default, but if the location includes hyphen(e.g. asia-northeast1), then the dataset-id can't satisfy its naming rule[1] and dataset creation fails.
[1]: https://cloud.google.com/bigquery/docs/datasets#dataset-naming

So could you please add the conversion of hyphen into underscore before setting STAGING_DATASET_ID?

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants