Watermarked incremental syncs for qcrh, qcri, qtnote, iprcct, icstt, methh, ported from the legacy /opt/sync merge logic. Rows initially backfilled from lgdat; columns match the cms.* dest (lgdat subset), pulled from DB2. Merge keys: qcrh dcord#, qcri ddord#, qtnote ggkey, iprcct tadate, icstt jhdate (legacy INSERT..ON CONFLICT -> keyed delete+insert), methh composite anpart,anplnt (legacy DELETE WHERE EXISTS). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
86 lines
2.0 KiB
JSON
86 lines
2.0 KiB
JSON
{
|
|
"name": "qtnote",
|
|
"source_connection": "S78030956",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "cms.qtnote",
|
|
"staging_table": "pipekit_staging.qtnote",
|
|
"merge_strategy": "incremental",
|
|
"merge_key": "ggkey",
|
|
"enabled": 1,
|
|
"dest_description": "Note pad file 6.1",
|
|
"columns": [
|
|
{
|
|
"source_name": "GGKEY",
|
|
"source_type": "CHAR(20)",
|
|
"dest_name": "ggkey",
|
|
"dest_type": "text",
|
|
"description": "Alpha Key"
|
|
},
|
|
{
|
|
"source_name": "GGPAG#",
|
|
"source_type": "NUMERIC(3,0)",
|
|
"dest_name": "ggpag#",
|
|
"dest_type": "numeric",
|
|
"description": "Page Number"
|
|
},
|
|
{
|
|
"source_name": "GGLIN#",
|
|
"source_type": "NUMERIC(2,0)",
|
|
"dest_name": "gglin#",
|
|
"dest_type": "numeric",
|
|
"description": "Line Number"
|
|
},
|
|
{
|
|
"source_name": "GGTEXT",
|
|
"source_type": "CHAR(75)",
|
|
"dest_name": "ggtext",
|
|
"dest_type": "text",
|
|
"description": "Text"
|
|
},
|
|
{
|
|
"source_name": "GGFUT1",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "ggfut1",
|
|
"dest_type": "text",
|
|
"description": "Future Use 1"
|
|
},
|
|
{
|
|
"source_name": "GGFUT2",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "ggfut2",
|
|
"dest_type": "text",
|
|
"description": "Future Use 2"
|
|
},
|
|
{
|
|
"source_name": "GGFUT3",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "ggfut3",
|
|
"dest_type": "text",
|
|
"description": "Future Use 3"
|
|
},
|
|
{
|
|
"source_name": "GGFUT4",
|
|
"source_type": "CHAR(10)",
|
|
"dest_name": "ggfut4",
|
|
"dest_type": "text",
|
|
"description": "Create User ID"
|
|
},
|
|
{
|
|
"source_name": "GGFUT5",
|
|
"source_type": "CHAR(10)",
|
|
"dest_name": "ggfut5",
|
|
"dest_type": "text",
|
|
"description": "Future Use 5"
|
|
}
|
|
],
|
|
"watermarks": [
|
|
{
|
|
"name": "qtnote_wm",
|
|
"connection": "usmidsap02",
|
|
"resolver_sql": "SELECT LPAD((substring(COALESCE(MAX(ggkey),'0'),1,9)::bigint - 10000)||'001',12,'0') FROM cms.qtnote",
|
|
"default_value": null
|
|
}
|
|
],
|
|
"hooks": []
|
|
}
|