ERROR: invalid byte sequence for encoding “UTF8”: 0x00
PostgreSQL doesn’t support storing NULL (\0x00) characters in text fields (this is obviously different from the database NULL value, which is fully supported).
If you need to store the NULL character, you must use a bytea field – which should store anything you want, but won’t support text operations on it.
Given that PostgreSQL doesn’t support it in text values, there’s no good way to get it to remove it. You could import your data into bytea and later convert it to text using a special function (in perl or something, maybe?), but it’s likely going to be easier to do that in preprocessing before you load it.
使用transformation目录下的“Replace in string”或者”Value Mapper”组件替换\u0000为其他字符串即可。
注意使用“Replace in string”之后会新出来一个_01字段，mapping里要选择新字段，否则还会报错。