Skip to content

Instantly share code, notes, and snippets.

@mesmacosta
Created June 16, 2022 08:39
Show Gist options
  • Save mesmacosta/7c18e0818fc0407cf19975a4f9cd71bb to your computer and use it in GitHub Desktop.
Save mesmacosta/7c18e0818fc0407cf19975a4f9cd71bb to your computer and use it in GitHub Desktop.
def execute(self, context: Any):
hook = BigQueryHook(
gcp_conn_id=self.gcp_conn_id,
delegate_to=self.delegate_to,
impersonation_chain=self.impersonation_chain,
)
self.hook = hook
job_id = self._job_id(context)
# ... code suppresed for readability
self.job_id = job.job_id
return job.job_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment