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

Add a flag to restore old CSV import behaviour #605

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

mildbyte
Copy link
Contributor

@mildbyte mildbyte commented Jan 5, 2022

mildbyte referenced this pull request Jan 5, 2022
When using `sgr csv import`, we load data using `COPY FROM STDIN` which doesn't
let us treat empty strings as NULLs, whereas with the CSV FDW we can do that.
To get around this, we use the empty strings in the type inference in the former
case (so that integer columns with empty strings still end up as VARCHARs).
@mildbyte mildbyte merged commit 016d078 into master Jan 5, 2022
@mildbyte mildbyte deleted the feature/ignore-empty-strings-flag branch January 5, 2022 16:31
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

Successfully merging this pull request may close these issues.

None yet

1 participant