Prepare data
The third data operation of this tutorial will consist in preparing data within BigQuery tables.
🗺️ Overview
📄 Create your files
Create the JSON file that configures the data operation
{ "$schema": "http://jsonschema.tailer.ai/schema/table-to-table-veditor", "configuration_type": "table-to-table", "configuration_id": "000099-load_my_gbq_dataset_my_table", "short_description": "Prepare data for the Tailer demo", "account": "000099", "environment": "DEV", "activated": true, "archived": false, "start_date": "2023, 1, 23", "catchup": false, "schedule_interval": "None", "default_gcp_project_id": "my-gcp-project", "default_bq_dataset": "my_gbq_dataset", "default_write_disposition": "WRITE_TRUNCATE", "task_dependencies": [ "load_temp_sales >> swap_sales_tables" ], "workflow": [ { "task_type": "sql", "id": "load_temp_sales", "short_description": "Load temp sales table", "bq_dataset": "temp", "table_name": "sales", "sql_file": "load_sales.sql" }, { "id": "swap_sales_tables", "task_type": "copy_gbq_table", "source_gcp_project_id": "my-gcp-project", "source_bq_dataset": "temp", "source_bq_table": "sales", "bq_dataset": "my-gcp-project", "destination_bq_table": "sales" } ] }
Create a SQL file
Create the JSON file that triggers the workflow
▶️ Deploy the data operation
✅ Check the data operation status in Tailer Studio
🚀 Further steps
Last updated