config/ had drifted from pipekit.db: group memberships and three
schedules existed only in the DB, cjobdr and cjobh had no sidecars at
all, and ab.{json,sql} was left over from a module no longer in the DB
(an apply would have recreated it). pipekit apply --dry-run now reports
that the database matches config.
Two real inconsistencies fixed in ffpdglr1.json: it was missing the
ffpdglr1_hot watermark added with the rollover hot set, so an apply from
files would have deleted the watermark while the committed SQL still
referenced {ffpdglr1_hot}; and its period resolver had been edited in the
UI without an export, so the file carried a stale format('%L', ...)
variant.
Purchasing members were all run_order 0, which happened to sort
poh, poh_deleted, poi alphabetically and satisfy the real constraints by
accident. Now explicit: poh 1, poi 2, poh_deleted 3 -- poi resolves its
watermark off cms.poh, and poh_deleted's first hook reads cms.poh.
Also describes eight GP modules that had no description (dest_description
is the half the sidecar format carries; the module-level description
lives only in the DB).
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
169 lines
4.0 KiB
JSON
169 lines
4.0 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_hot",
|
|
"connection": "usmidsap02",
|
|
"resolver_sql": "SELECT LEAST(COALESCE(MAX(nwpdat), CURRENT_DATE), CURRENT_DATE) - 14 FROM cms.rprh WHERE nwfsyy < 35",
|
|
"default_value": null
|
|
},
|
|
{
|
|
"name": "ffpdglr1_wm",
|
|
"connection": "usmidsap02",
|
|
"resolver_sql": "SELECT COALESCE(MAX(to_char(nwfsyy,'00FM')||to_char(nwfspp,'00FM')), '1501') FROM cms.rprh where nwfsyy < 35",
|
|
"default_value": "'1501'"
|
|
}
|
|
],
|
|
"hooks": []
|
|
}
|