In Confluence habe ich ein Oberpunkt Guidwire.
Unter diesem Punkt möchte ich CDA (Cloud Data Access) ablegen.
Guidewire CDA Data Ingestion Monitoring & Control via Snowflake ist eins Seite. Kannst du eine Struktur angeben in der ich auch die Prozeduren beschereibe und auch den Aufruf der Ingest für Initial und Incrementell. Bitte alles auf english
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Of course. Here is a proposal for a Confluence page structure and the content for the specific page, all in English. This structure is designed to be clear, comprehensive, and easy for technical users to follow.
Confluence Page Hierarchy
Here is a recommended structure for your Confluence space. You would start with the "Guidewire" parent page and create child pages under it.
Guidewire (Parent Page)
CDA (Cloud Data Access) (Child Page)
Overview of Guidewire CDA
Architecture & Data Flow
Guidewire CDA Data Ingestion Monitoring & Control via Snowflake (This is the detailed page you requested)
CDA Security and Permissions
CDA Troubleshooting Guide
Content for the Page: "Guidewire CDA Data Ingestion Monitoring & Control via Snowflake"
Here is the detailed content for this specific page, using standard Confluence formatting like headings, code blocks, and tables.
Guidewire CDA Data Ingestion Monitoring & Control via Snowflake
1. Overview
This document describes the procedures for ingesting Guidewire data into Snowflake via Cloud Data Access (CDA). It covers the processes for both the initial (full) load and ongoing incremental (delta) loads. It also provides the necessary SQL commands and queries for triggering, monitoring, and controlling the ingestion process.
The data flows from Guidewire CDA, which writes Parquet or Avro files to a cloud storage staging area (e.g., an S3 bucket). A Snowflake process (typically a Snowpipe or a Stored Procedure running a COPY INTO command) then loads this data from the staging area into raw Snowflake tables. A subsequent transformation step (e.g., a MERGE statement) integrates the data into the final target tables.
2.2. Prerequisites
Before running any procedures, ensure you have:
Snowflake Access: A Snowflake user with a role that has USAGE permissions on the database and schema, and EXECUTE permissions on the procedures (e.g., CDA_OPERATOR_ROLE).
Tooling: Access to the Snowflake UI (Snowsight) or a SQL client (e.g., DBeaver, DataGrip).
Knowledge: Basic understanding of SQL and Snowflake concepts.
3. Initial Data Ingestion (Full Load)
The initial load is a one-time operation designed to populate the Snowflake target tables with the complete historical dataset from Guidewire.
3.1. Procedure Description
The initial load is triggered by executing a master stored procedure. This procedure typically performs the following steps for each table:
Truncates the target table to ensure a clean slate.
Executes a COPY INTO command to load all files from the CDA "initial" folder in the S3 bucket.
Logs the operation status (start time, end time, row count, status) into a control table.
3.2. How to Trigger the Initial Load
Execute the following stored procedure in Snowflake. The procedure may accept a table name as a parameter to load tables individually, or run for all tables if the parameter is omitted.
To load a single table:
sql
-- Description: Executes the initial (full) load for a specific Guidewire table.
-- Usage: CALL
-- Example for the 'cc_claim' table
CALL YOUR_DATABASE.CDA_SCHEMA.PROC_INITIAL_LOAD('cc_claim');
To load all tables (if supported by the procedure):
sql
-- Description: Executes the initial (full) load for ALL configured Guidewire tables.
-- Warning: This is a long-running and resource-intensive operation.
CALL YOUR_DATABASE.CDA_SCHEMA.PROC_INITIAL_LOAD_ALL();
3.3. Verification
After the procedure completes, verify the load by checking the control log and querying the row count.
sql
-- Check the control log for the latest initial load status
SELECT *
FROM YOUR_DATABASE.CDA_SCHEMA.INGESTION_LOG
WHERE load_type = 'INITIAL' AND table_name = 'cc_claim'
ORDER BY start_timestamp DESC
LIMIT 1;
-- Check the row count of the loaded table
SELECT COUNT(*) FROM YOUR_DATABASE.CDA_SCHEMA.cc_claim;
4. Incremental Data Ingestion (Delta Load)
The incremental load is an ongoing, scheduled process that captures changes (inserts, updates, deletes) from Guidewire and applies them to the Snowflake tables.
4.1. Procedure Description
This process is typically automated via a Snowflake Task. It identifies new files in the "incremental" S3 folder, loads them into a staging table, and then uses a MERGE statement to apply the changes to the final target table.
4.2. How to Manually Trigger an Incremental Load
While automated, you may need to manually trigger the process for testing or to backfill a missed run.
To trigger the incremental load for a single table:
sql
-- Description: Executes the incremental (delta) load for a specific Guidewire table.
-- This will process all new files since the last successful run.
CALL YOUR_DATABASE.CDA_SCHEMA.PROC_INCREMENTAL_LOAD('cc_claim');
4.3. Scheduling and Automation
The incremental loads are scheduled using a Snowflake Task.
To check the status of the automated task:
sql
-- Show the definition and schedule of the task
SHOW TASKS LIKE 'TASK_INCREMENTAL_LOAD_CLAIMS' IN SCHEMA YOUR_DATABASE.CDA_SCHEMA;
-- Check the run history for the task
SELECT *
FROM TABLE(information_schema.task_history(
task_name=>'TASK_INCREMENTAL_LOAD_CLAIMS',
result_limit => 10
));
To suspend or resume the automated task:
sql
-- Suspend (pause) the task
ALTER TASK YOUR_DATABASE.CDA_SCHEMA.TASK_INCREMENTAL_LOAD_CLAIMS SUSPEND;
-- Resume the task
ALTER TASK YOUR_DATABASE.CDA_SCHEMA.TASK_INCREMENTAL_LOAD_CLAIMS RESUME;
5. Monitoring & Control
Active monitoring is crucial to ensure data integrity and timeliness.
5.1. Key Monitoring Queries
Description
Query
View Latest Job Status
SELECT * FROM YOUR_DATABASE.CDA_SCHEMA.INGESTION_LOG ORDER BY start_timestamp DESC LIMIT 20;
Find Failed Jobs
SELECT * FROM YOUR_DATABASE.CDA_SCHEMA.INGESTION_LOG WHERE status = 'FAILED' AND start_timestamp > 'YYYY-MM-DD';
Check for Load Errors (COPY)
SELECT * FROM TABLE(information_schema.copy_history(table_name=>'YOUR_TABLE', start_time=> dateadd(hours, -4, current_timestamp())));
Check Snowpipe Status
SELECT SYSTEM$PIPE_STATUS('your_pipe_name');
6. Troubleshooting & FAQ
Problem: An incremental load failed with a "Duplicate Key" error.
Solution: This indicates a data issue. Investigate the source file that caused the error (check the COPY_HISTORY or logs). The data may need to be corrected in Guidewire, or the MERGE logic may need adjustment.
Problem: Data in Snowflake does not match Guidewire.
Solution:
Verify that the incremental load task is running successfully and on schedule.
Check the INGESTION_LOG to ensure no loads have failed for the relevant tables.
Manually trigger a run for the affected table and check if the discrepancy is resolved.
Problem: The initial load is taking too long.
Solution: The Snowflake Warehouse may be undersized. Consider temporarily scaling up the warehouse size for the duration of the initial load. ALTER WAREHOUSE your_wh SET WAREHOUSE_SIZE = 'LARGE';