Merge pull request #30 from fleetside72/map_set

when setting the map regex, retain the whole json being supplied
This commit is contained in:
fleetside72 2018-06-01 13:40:33 -04:00 committed by GitHub
commit f7d197ce9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -361,7 +361,7 @@ BEGIN
--map name
,ae.r->>'name'
--map definition
,ae.r->'regex'
,ae.r
--map aggregation sequence
,(ae.r->>'sequence')::INTEGER
--history definition

View File

@ -20,7 +20,7 @@ BEGIN
--map name
,ae.r->>'name'
--map definition
,ae.r->'regex'
,ae.r
--map aggregation sequence
,(ae.r->>'sequence')::INTEGER
--history definition

View File

@ -12,7 +12,7 @@ BEGIN
_path:= ARRAY['schemas',_schema]::text[];
--_srce:= 'dcard';
SELECT
'DROP VIEW IF EXISTS tpsv.'||_srce||'_'||_path[2]||'; CREATE VIEW tpsv.'||_srce||'_'||_path[2]||' AS SELECT id, logid, '||string_agg('(allj#>>'''||r.PATH::text||''')::'||r.type||' AS "'||r.column_name||'"',', ')||' FROM tps.trans WHERE srce = '''||_srce||''';'
'DROP VIEW IF EXISTS tpsv.'||_srce||'_'||_path[2]||'; CREATE VIEW tpsv.'||_srce||'_'||_path[2]||' AS SELECT id, logid, allj, '||string_agg('(allj#>>'''||r.PATH::text||''')::'||r.type||' AS "'||r.column_name||'"',', ')||' FROM tps.trans WHERE srce = '''||_srce||''';'
INTO
_sql
FROM