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: empty ndjson input files more robust #473

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Conversation

Taepper
Copy link
Collaborator

@Taepper Taepper commented Jun 10, 2024

in order for loculus-project/loculus#2112 to work. No separate issue in SILO

Summary

Before, it relied on the file being empty and it b…eing detected as such by the standard library std::filesystem::is_empty method , now we are happy if they contain zero rows as detected by duckdb

PR Checklist

- [ ] All necessary documentation has been adapted or there is an issue to do so.

  • The implemented feature is covered by an appropriate test. [the empty test has been amended to contain a single empty line]

 Before, relied on the file being empty and it being detected as such by the standard library std::filesystem::is_empty method , now we are happy if they contain zero rows as detected by duckdb
Copy link
Contributor

@JonasKellerer JonasKellerer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Taepper Taepper merged commit 9d4232b into main Jun 10, 2024
9 checks passed
@Taepper Taepper deleted the empty-input-more-robust branch June 10, 2024 13:16
davidgicev pushed a commit that referenced this pull request Jun 10, 2024
Before, relied on the file being empty and it being detected as such by the standard library std::filesystem::is_empty method , now we are happy if they contain zero rows as detected by duckdb
@github-actions github-actions bot mentioned this pull request Aug 6, 2024
2 tasks
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