Add a new object/table to an existing data source workflow
Adds a new object/table to an existing data source ingestion workflow with all required configuration files.
/plugin marketplace add treasure-data/aps_claude_tools/plugin install treasure-data-cdp-ingestion-plugins-cdp-ingestion@treasure-data/aps_claude_toolsI'll help you add a new object/table to an existing ingestion source following exact templates from documentation.
Please provide:
klaviyo, shopify_v2, salesforce)orders, products, contacts)shopify_orders)updated_at, modified_date)2023-09-01T00:00:00.000000)incremental - Add to incremental workflowhistorical - Add to historical workflowboth - Add to both workflowsI will generate/update ALL of the following in a SINGLE response:
ingestion/config/{source}_{object}_load.yml - New load configurationingestion/config/{source}_datasources.yml - Add object to datasource listingestion/{source}_ingest_inc.dig - Updated workflow (if incremental mode)ingestion/{source}_ingest_hist.dig - Updated workflow (if historical mode)Total: 1 new file + 2-3 updated files in ONE response
I will READ the source-specific documentation BEFORE making ANY changes:
docs/sources/{source}.md - Source-specific exact templatesdocs/patterns/timestamp-formats.md - Correct timestamp formatdocs/patterns/incremental-patterns.md - Incremental field handlingI will read the existing workflow and datasource config to understand current structure
Using multiple Write/Edit tool calls in a SINGLE message:
I will use exact templates for the new object:
Before delivering, I will verify: ✅ New load config matches template for source ✅ Datasource config updated correctly ✅ Workflow(s) updated with proper structure ✅ Timestamp format correct for source ✅ Incremental field handling correct ✅ All logging blocks present ✅ All error handling blocks present
inc_field (NOT incremental_field).000000 timestamp format (6 decimals, NO Z)inc_datasources or hist_datasources list.000Z timestamp format (3 decimals, WITH Z)created_at, incremental uses updated_atFor adding orders object to shopify_v2:
ingestion/config/shopify_v2_orders_load.ymlingestion/config/shopify_v2_datasources.yml (added orders to inc_datasources)ingestion/shopify_v2_ingest_inc.dig (workflow already handles new datasource)✅ Load config uses ISO 8601 timestamp format
✅ Incremental field set to updated_at
✅ Datasource config updated with orders entry
✅ Workflow will automatically process new object
✅ All logging blocks present
✅ Error handling present
cd ingestion
td wf secrets --project ingestion --set @credentials_ingestion.json
td wf check {source}_ingest_inc.dig
# or
td wf check {source}_ingest_hist.dig
td wf run {source}_ingest_inc.dig
# or
td wf run {source}_ingest_hist.dig
SELECT * FROM client_src.ingestion_log
WHERE source_name = '{source}'
AND table_name = '{source}_{object}'
ORDER BY time DESC
LIMIT 10
SELECT COUNT(*) as row_count,
MIN(time) as first_record,
MAX(time) as last_record
FROM client_src.{source}_{object}
All generated/updated code will:
Ready to proceed? Provide the required information (source name, object name, table name, incremental field, start date, mode) and I'll generate/update all required files in ONE response using exact templates from documentation.