Closed xerial closed 9 years ago
The error says that a string object includes null (\\0
) character. Does the query result include such string object?
I'll check. Thanks!
If yes, you need some normalization code around here:
Yes. The query results contain several null characters:
presto> SELECT td_client_id FROM (some table) where regexp_like(td_client_id, '\00');
td_client_id
-------------------------------------------------
xxxxxxxxxxxxxxx7e3cebf9fe^@^@^@^@
xxxxxxxxxxxxxxx1a-871b-3d648572fee2^@
xxxxxxxxxxxxxxx230-a318-31be55551193^@^@
...
I see. It means that Presto can contain \0
character in a string but PostgreSQL can't. Prestogres needs to manage the difference.
Could you paste detailed stacktrace?
I checked the log, but couldn't find any stacktrace around the time error occurred. Our td-presto may also need to handle trailing null values.
ok, try this: https://github.com/treasure-data/prestogres/pull/31
Do you have any idea why this error happens?