gfw.common.beam.pipeline.hooks.create_table_hook#
- create_table_hook(table_config, mock=False)[source]#
Returns a hook function to create a BigQuery table.
- Parameters:
table_config (TableConfig) –
TableConfiginstance containing view details.mock (bool) – If True, uses a mocked BQ client instead of performing real operations.
- Returns:
A callable hook that accepts a
Pipelineinstance and creates the view.- Return type: