pipekit/config/modules/ffpdglr1.json
Paul Trowbridge 6a3ac0e436 Add Bucket 1 CMS→pipekit modules (41 tables)
Full-reload modules for the CMS/DB2 tables migrated off /opt/sync, landing
in cms.*. Columns introspected fresh from DB2 (QSYS2.SYSCOLUMNS). Three large
tables use incremental merge ported from the legacy sync instead of full
reload: iprcctn/iprccto (date watermark on t8date/t7date), ffpdglr1 (fiscal-
period watermark via rprh join, keyed on btid).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-27 12:33:48 -04:00

163 lines
3.8 KiB
JSON

{
"name": "ffpdglr1",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.ffpdglr1",
"staging_table": "pipekit_staging.ffpdglr1",
"merge_strategy": "incremental",
"merge_key": "btid",
"enabled": 1,
"dest_description": "",
"columns": [
{
"source_name": "SRCE",
"source_type": "CHAR(4)",
"dest_name": "srce",
"dest_type": "text",
"description": "SRCE"
},
{
"source_name": "WRKO",
"source_type": "VARCHAR(10)",
"dest_name": "wrko",
"dest_type": "text",
"description": "WRKO"
},
{
"source_name": "BTID",
"source_type": "INTEGER",
"dest_name": "btid",
"dest_type": "integer",
"description": "BTID"
},
{
"source_name": "ENT#",
"source_type": "INTEGER",
"dest_name": "ent#",
"dest_type": "integer",
"description": "ENT#"
},
{
"source_name": "SEQ#",
"source_type": "INTEGER",
"dest_name": "seq#",
"dest_type": "integer",
"description": "SEQ#"
},
{
"source_name": "PART",
"source_type": "VARCHAR(20)",
"dest_name": "part",
"dest_type": "text",
"description": "PART"
},
{
"source_name": "RPLN",
"source_type": "CHAR(1)",
"dest_name": "rpln",
"dest_type": "text",
"description": "RPLN"
},
{
"source_name": "PQTY",
"source_type": "DECIMAL(20,5)",
"dest_name": "pqty",
"dest_type": "numeric(20,5)",
"description": "PQTY"
},
{
"source_name": "ARSC",
"source_type": "VARCHAR(5)",
"dest_name": "arsc",
"dest_type": "text",
"description": "ARSC"
},
{
"source_name": "ADEP",
"source_type": "VARCHAR(5)",
"dest_name": "adep",
"dest_type": "text",
"description": "ADEP"
},
{
"source_name": "ACTN",
"source_type": "VARCHAR(10)",
"dest_name": "actn",
"dest_type": "text",
"description": "ACTN"
},
{
"source_name": "ACCT",
"source_type": "CHAR(12)",
"dest_name": "acct",
"dest_type": "text",
"description": "ACCT"
},
{
"source_name": "AMNT",
"source_type": "DECIMAL(20,2)",
"dest_name": "amnt",
"dest_type": "numeric(20,2)",
"description": "AMNT"
},
{
"source_name": "SRSC",
"source_type": "VARCHAR(5)",
"dest_name": "srsc",
"dest_type": "text",
"description": "SRSC"
},
{
"source_name": "RHRS",
"source_type": "DECIMAL(20,5)",
"dest_name": "rhrs",
"dest_type": "numeric(20,5)",
"description": "RHRS"
},
{
"source_name": "RCRW",
"source_type": "DECIMAL(20,5)",
"dest_name": "rcrw",
"dest_type": "numeric(20,5)",
"description": "RCRW"
},
{
"source_name": "SHRS",
"source_type": "DECIMAL(20,5)",
"dest_name": "shrs",
"dest_type": "numeric(20,5)",
"description": "SHRS"
},
{
"source_name": "SCRW",
"source_type": "DECIMAL(20,5)",
"dest_name": "scrw",
"dest_type": "numeric(20,5)",
"description": "SCRW"
},
{
"source_name": "RRAT",
"source_type": "DECIMAL(20,5)",
"dest_name": "rrat",
"dest_type": "numeric(20,5)",
"description": "RRAT"
},
{
"source_name": "RSIZ",
"source_type": "DECIMAL(20,5)",
"dest_name": "rsiz",
"dest_type": "numeric(20,5)",
"description": "RSIZ"
}
],
"watermarks": [
{
"name": "ffpdglr1_wm",
"connection": "usmidsap02",
"resolver_sql": "SELECT COALESCE(format('%L', MAX(to_char(nwfsyy,'00FM')||to_char(nwfspp,'00FM'))), '''1501''') FROM cms.rprh",
"default_value": "'1501'"
}
],
"hooks": []
}