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

sql: fix COPY CSV so it handles multiple records at a time #68573

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

rafiss
Copy link
Collaborator

@rafiss rafiss commented Aug 7, 2021

fixes #68484

This was broken since the golang csv reader reads the entire input all
at once, so the underlying buffer is consumed. This caused the loop that
reads each record to terminate early.

Release note (bug fix): Fixed the COPY CSV command so that it handles
multiple records separated by newline characters.

This was broken since the golang csv reader reads the entire input all
at once, so the underlying buffer is consumed. This caused the loop that
reads each record to terminate early.

Release note (bug fix): Fixed the COPY CSV command so that it handles
multiple records separated by newline characters.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rafiss rafiss requested review from otan and a team August 7, 2021 17:49
@rafiss
Copy link
Collaborator Author

rafiss commented Aug 9, 2021

tftr!

bors r=otan

@craig
Copy link
Contributor

craig bot commented Aug 9, 2021

Build failed (retrying...):

@rafiss
Copy link
Collaborator Author

rafiss commented Aug 9, 2021

bors r=otan

@craig
Copy link
Contributor

craig bot commented Aug 9, 2021

Already running a review

@craig
Copy link
Contributor

craig bot commented Aug 9, 2021

Build succeeded:

@craig craig bot merged commit 8de063f into cockroachdb:master Aug 9, 2021
@rafiss rafiss deleted the fix-copy-csv branch August 10, 2021 06:42
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.

Copy CSV only inserts first entry
3 participants