add mapping template
This commit is contained in:
parent
4a85732890
commit
a01c5c1a04
31
map_rm_template.pgsql
Normal file
31
map_rm_template.pgsql
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
DELETE FROM tps.map_rm where target = 'Strip Amount Commas';
|
||||||
|
INSERT INTO
|
||||||
|
tps.map_rm
|
||||||
|
SELECT *
|
||||||
|
FROM
|
||||||
|
(VALUES
|
||||||
|
('PNCC', 'Strip Amount Commas',
|
||||||
|
$j$
|
||||||
|
{
|
||||||
|
"name":"Strip Amount Commas",
|
||||||
|
"description":"the Amount field come from PNC with commas embeded so it cannot be cast to numeric",
|
||||||
|
"defn": [
|
||||||
|
{
|
||||||
|
"key": "{Amount}",
|
||||||
|
"field": "amount",
|
||||||
|
"regex": ",",
|
||||||
|
"replace":"",
|
||||||
|
"flag":"g",
|
||||||
|
"retain":"y"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"function":"replace",
|
||||||
|
"map":"no",
|
||||||
|
"where": [
|
||||||
|
{
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
$j$::jsonb
|
||||||
|
, 1)
|
||||||
|
) x;
|
Loading…
Reference in New Issue
Block a user