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

Issue when creating id field #395

Open
ahvahsky2008 opened this issue Apr 6, 2022 · 1 comment
Open

Issue when creating id field #395

ahvahsky2008 opened this issue Apr 6, 2022 · 1 comment

Comments

@ahvahsky2008
Copy link

Try to upload mssql table to postgres table. When i try insert data - its raise error. datasets convert uniqueidentifier field to serial4

How manually setup column type?

image
image

table.upsert_many(rows = list(data), keys = data.keys, chunk_size=1000)

(psycopg2.errors.InvalidTextRepresentation) invalid input syntax for type integer: "CDEA5888-293A-4D0B-B2DE-0001C633F4FE"

@matecsaj
Copy link

Note the create_table command documented here https://dataset.readthedocs.io/en/latest/api.html#database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants