Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duckdb.duckdb.Error: Failed to copy data: ERROR: invalid byte sequence for encoding "UTF8": 0x00 #228

Closed
2 tasks done
wonb168 opened this issue May 11, 2024 · 0 comments · Fixed by #255
Closed
2 tasks done

Comments

@wonb168
Copy link

wonb168 commented May 11, 2024

What happens?

The error occurs when writing a DuckDB table to Greenplum.
invalid byte sequence for encoding "UTF8": 0x00

To Reproduce

sql=f"""
insert into gp.tenant_{tenant}_adm.{tb}
select * from tmp_rst
;"""
exesql(sql)

OS:

mac14

PostgreSQL Version:

6.12.1(gp,pg:9.4)

DuckDB Version:

0.10.1

DuckDB Client:

python

Full Name:

wang cz

Affiliation:

Linezone

Have you tried this on the latest main branch?

  • I agree

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • I agree
Mytherin added a commit that referenced this issue Sep 3, 2024
Fix #228: explicitly handle NULL bytes in strings by throwing a helpful error message, and add a setting pg_null_byte_replacement which can be used to replace them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant