From 273b7c9673a56975ab3a333f74bda95c4298e89e Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 27 Oct 2017 15:50:42 -0400 Subject: [PATCH] limit mapper to allj records are null --- do_map_g_option.pgsql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/do_map_g_option.pgsql b/do_map_g_option.pgsql index 6357b7e..4d1efee 100644 --- a/do_map_g_option.pgsql +++ b/do_map_g_option.pgsql @@ -76,7 +76,8 @@ FROM m.regex->>'function' = 'extract' LEFT JOIN LATERAL regexp_replace(t.rec #>> ((e.v ->> 'key')::text[]), e.v ->> 'regex'::text, e.v ->> 'replace'::text,e.v ->> 'flag') WITH ORDINALITY rp(rp, rn) ON m.regex->>'function' = 'replace' ---WHERE +WHERE + t.allj IS NULL --t.srce = 'PNCC' --rec @> '{"Transaction":"ACH Credits","Transaction":"ACH Debits"}' --rec @> '{"Description":"CHECK 93013270 086129935"}'::jsonb