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

Fix copy-to with header #2628

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Fix copy-to with header #2628

merged 1 commit into from
Jan 3, 2024

Conversation

acquamarin
Copy link
Collaborator

@acquamarin acquamarin commented Jan 3, 2024

This PR fixes the copy-to csv with header bug.
We used to serialize the header to the csv file in the localState, however this doesn't guarantee that the header will always be flushed as the first line in the csv file.
This PR moves the flushing of header to the sharedState, which guarantees that the header always be flushed first.

@acquamarin acquamarin changed the title Add demo-db copy to test Fix copy-to with header Jan 3, 2024
Copy link

codecov bot commented Jan 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (508dc50) 93.40% compared to head (2dc9edd) 91.32%.
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2628      +/-   ##
==========================================
- Coverage   93.40%   91.32%   -2.09%     
==========================================
  Files        1041     1046       +5     
  Lines       39002    39143     +141     
==========================================
- Hits        36431    35747     -684     
- Misses       2571     3396     +825     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@acquamarin acquamarin merged commit 1d1779f into master Jan 3, 2024
14 checks passed
@acquamarin acquamarin deleted the demo-db-test branch January 3, 2024 16:08
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.

2 participants