pipekit/config/modules/iprcct.json
Paul Trowbridge 560056c39c Add Bucket 2 CMS incremental modules (6 tables)
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>
2026-07-27 22:17:39 -04:00

72 lines
1.7 KiB
JSON

{
"name": "iprcct",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.iprcct",
"staging_table": "pipekit_staging.iprcct",
"merge_strategy": "incremental",
"merge_key": "tadate",
"enabled": 1,
"dest_description": "Price List Trans Log Headers 6.0",
"columns": [
{
"source_name": "TAPLCD",
"source_type": "CHAR(5)",
"dest_name": "taplcd",
"dest_type": "text",
"description": "Price List Code"
},
{
"source_name": "TAPART",
"source_type": "CHAR(20)",
"dest_name": "tapart",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "TAUNIT",
"source_type": "CHAR(3)",
"dest_name": "taunit",
"dest_type": "text",
"description": "Pricing Unit"
},
{
"source_name": "TADATE",
"source_type": "DATE",
"dest_name": "tadate",
"dest_type": "date",
"description": "Transaction Date"
},
{
"source_name": "TATIME",
"source_type": "TIME",
"dest_name": "tatime",
"dest_type": "time without time zone",
"description": "Transaction Time"
},
{
"source_name": "TAUSER",
"source_type": "CHAR(10)",
"dest_name": "tauser",
"dest_type": "text",
"description": "User ID"
},
{
"source_name": "TAPROG",
"source_type": "CHAR(10)",
"dest_name": "taprog",
"dest_type": "text",
"description": "Program Number"
}
],
"watermarks": [
{
"name": "iprcct_wm",
"connection": "usmidsap02",
"resolver_sql": "SELECT COALESCE(MAX(tadate), DATE '2000-01-01') FROM cms.iprcct",
"default_value": null
}
],
"hooks": []
}