astronomer.providers.google.cloud.extractors.bigquery¶
Classes¶
Internal SQL context for holding query parser results |
|
This extractor provides visibility on the metadata of a BigQuery Insert Job |
Module Contents¶
- class astronomer.providers.google.cloud.extractors.bigquery.SqlContext[source]¶
Internal SQL context for holding query parser results
- sql: str¶
- inputs: str | None¶
- outputs: str | None¶
- parser_error: str | None¶
- class astronomer.providers.google.cloud.extractors.bigquery.BigQueryAsyncExtractor(operator)[source]¶
Bases:
openlineage.airflow.extractors.base.BaseExtractor
This extractor provides visibility on the metadata of a BigQuery Insert Job including
billedBytes
,rowCount
,size
, etc. submitted from aBigQueryInsertJobOperatorAsync
operator.- classmethod get_operator_classnames()[source]¶
Returns the list of operators this extractor works on.
- extract_on_complete(task_instance)[source]¶
Callback on task completion to fetch metadata extraction details that are to be pushed to the Lineage server.
- Parameters:
task_instance (airflow.models.taskinstance.TaskInstance) – Instance of the Airflow task whose metadata needs to be extracted.