dejan_pejcev
01/29/2021, 10:31 PMtarget-postgres | psycopg2.errors.UntranslatableCharacter: unsupported Unicode escape sequence
target-postgres | DETAIL: \u0000 cannot be converted to text.
target-postgres | CONTEXT: JSON data, line 1: ...ams commmunication": "false", "Waiver Signature":...
target-postgres | COPY tmp_7e554454_d6ae_43b2_9169_b6f767a05767, line 18152, column custom_data: "{"Adult and Youth Waiver": "true", "Rams commmunication": "false", "Waiver Signature": "Kristina Bro..."
ohthis is a known issue in Postgres with \0 as EOS. Any idea how can I add processing on the singer json, so I can replace all \0 or to cast a specific column to json or jsonbdouwe_maan
01/29/2021, 10:32 PMdouwe_maan
01/29/2021, 10:33 PMdejan_pejcev
01/29/2021, 10:34 PMdejan_pejcev
01/29/2021, 10:35 PMdouwe_maan
01/29/2021, 10:35 PM\0 is in a JSON column on the source that is turned into a regular text column on the destination?douwe_maan
01/29/2021, 10:37 PMdejan_pejcev
01/29/2021, 10:38 PMdouwe_maan
01/29/2021, 10:39 PMdouwe_maan
01/29/2021, 10:40 PMdejan_pejcev
01/29/2021, 10:42 PMdouwe_maan
01/29/2021, 10:42 PMmeltano elt in debug mode: https://meltano.com/docs/command-line-interface.html#debugging, you'll see each message with a tap-postgres (out) prefixdouwe_maan
01/29/2021, 10:43 PMdejan_pejcev
01/29/2021, 10:43 PMjson in the source db, it should map it also to a json column in the target db?douwe_maan
01/29/2021, 10:45 PMjsonb columns as object type properties on streams, which target-postgres would then map to jsonb againdejan_pejcev
01/29/2021, 10:45 PM...Therefore \u0000 will now also be rejected in json values when conversion to de-escaped form is required. This change does not break the ability to store \u0000 in json columns so long as no processing is done on the values...douwe_maan
01/29/2021, 10:45 PMjsonb or text ?douwe_maan
01/29/2021, 10:45 PMdejan_pejcev
01/29/2021, 10:46 PMjsonbdouwe_maan
01/29/2021, 10:47 PM\0 in a JSONB column using the type of COPY query target-postgres usesdejan_pejcev
01/29/2021, 10:47 PMdejan_pejcev
01/29/2021, 10:47 PMjson type with a \0 it will fail, so even converting from json to jsonb will errordouwe_maan
01/29/2021, 10:48 PMdouwe_maan
01/29/2021, 10:48 PMdouwe_maan
01/29/2021, 10:48 PMdejan_pejcev
01/29/2021, 10:48 PMjson-> json?douwe_maan
01/29/2021, 10:48 PMdouwe_maan
01/29/2021, 10:49 PMdejan_pejcev
01/29/2021, 10:51 PMdejan_pejcev
01/29/2021, 11:03 PMdouwe_maan
01/29/2021, 11:09 PMdouwe_maan
01/29/2021, 11:23 PM\0 s, but that may be unexpected and undesirable in some contextsdouwe_maan
01/30/2021, 12:31 AMandrew_stewart
03/11/2022, 6:31 PMandrew_stewart
03/11/2022, 6:39 PM\0000 in a jsonb field).
I’m trying to figure out how the mapper plugins can be used to either sanitize those records or just filter them out