Eric Loreaux
08/22/2023, 6:07 PMdagster-gcp
BigQueryResource class can be used in the following way:
@asset
def my_table(bigquery: BigQueryResource):
with bigquery.get_client() as client:
client.query("SELECT * FROM my_dataset.my_table")
is there a graceful way to enter and exit the context without using the with
statement?jamie
08/22/2023, 6:59 PMwith
statement is needed for handling credential setup. is there a reason the with
statement doesn’t work for you?Eric Loreaux
08/22/2023, 7:18 PMEric Loreaux
08/22/2023, 7:19 PMwith
separately on each of the blocks that require itjamie
08/22/2023, 7:19 PM