You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Null characters are currently passed as-is to Postgres despite being
unsupported.
If it is encountered, it causes the sink to fail as noted here:
#60 with an error
like `ValueError: A string literal cannot contain NUL (0x00)
characters.`
This PR introduces a new option called `sanitize_null_text_characters`
which enables sanitization of these characters.
---------
Co-authored-by: Edgar Ramírez Mondragón <[email protected]>
Co-authored-by: Edgar Ramírez-Mondragón <[email protected]>
Right now you'll get something like
ValueError: A string literal cannot contain NUL (0x00) characters
orsqlalchemy.exc.DataError: (psycopg2.errors.UntranslatableCharacter) unsupported Unicode escape sequence
as postgres doesn't allow NUL characters see https://www.postgresql.org/docs/current/functions-string.html#:~:text=chr(0)%20is%20disallowed%20because%20text%20data%20types%20cannot%20store%20that%20character.Should we sanitize the data ie something like
data.replace("\u0000","")
or leave the offending record?The text was updated successfully, but these errors were encountered: