Fix _custom_sales_line_connector map: dest_names to match table

Five dest_names in the column map were junk from a crude source-name
sanitizer (ext._price, margin__, _hd_grower, ext._cost,
ext._margin_dollar) and didn't match the physical gp table's clean names
(ext_price, margin_pct, hd_grower, ext_cost, ext_margin_dollar). The load
is positional so this was harmless for years — until the new dest-table
preflight's name check started (correctly) flagging the drift and failing
the daily run. Align the map to the table.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Paul Trowbridge 2026-07-27 10:09:52 -04:00
parent 515bfce37c
commit c073e70114

View File

@ -96,7 +96,7 @@
{
"source_name": "_HD_Grower",
"source_type": "VARCHAR(5)",
"dest_name": "_hd_grower",
"dest_name": "hd_grower",
"dest_type": "text",
"description": null
},
@ -187,7 +187,7 @@
{
"source_name": "Ext. Price",
"source_type": "NUMERIC(38,7)",
"dest_name": "ext._price",
"dest_name": "ext_price",
"dest_type": "numeric(38,7)",
"description": null
},
@ -201,7 +201,7 @@
{
"source_name": "Ext. Cost",
"source_type": "NUMERIC(38,9)",
"dest_name": "ext._cost",
"dest_name": "ext_cost",
"dest_type": "numeric(38,9)",
"description": null
},
@ -215,14 +215,14 @@
{
"source_name": "Ext. Margin Dollar",
"source_type": "NUMERIC(38,7)",
"dest_name": "ext._margin_dollar",
"dest_name": "ext_margin_dollar",
"dest_type": "numeric(38,7)",
"description": null
},
{
"source_name": "Margin %",
"source_type": "NVARCHAR(4000)",
"dest_name": "margin__",
"dest_name": "margin_pct",
"dest_type": "text",
"description": null
},