We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 628d8b8 commit 2bbac4eCopy full SHA for 2bbac4e
airflow-cloud-composer-etl-feature-train/materializers/bq_dataset.py
@@ -36,9 +36,10 @@ def __init__(
36
self.project = project
37
self.dataset = dataset
38
if project is None:
39
+ # Split up the table_id to get the project
40
+ self.project = table_id.split(".")[0]
41
self.client = bigquery.Client()
- else:
- self.client = bigquery.Client(project=project)
42
+ self.client = bigquery.Client(project=self.project)
43
self.df = df
44
45
def read_data(self) -> pd.DataFrame:
0 commit comments