-
Notifications
You must be signed in to change notification settings - Fork 32
fix: skip if unrecognized or unsupported uri instead of throwing errors #109
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #109 +/- ##
==========================================
- Coverage 91.88% 91.86% -0.03%
==========================================
Files 77 77
Lines 10320 10407 +87
==========================================
+ Hits 9483 9560 +77
- Misses 837 847 +10 ☔ View full report in Codecov by Sentry. |
src/parquet_copy_hook/copy_utils.rs
Outdated
| }; | ||
|
|
||
| Some(parse_uri(uri)) | ||
| ParsedUriInfo::try_from(uri).ok() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens to the error here? It becomes None?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, maybe we should return Result instead of Option. It sounds better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeh, would be good. Otherwise, this looks alright.
src/parquet_copy_hook/copy_utils.rs
Outdated
| }; | ||
|
|
||
| Some(parse_uri(uri)) | ||
| ParsedUriInfo::try_from(uri).ok() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeh, would be good. Otherwise, this looks alright.
6be3a74 to
7eb8369
Compare
No description provided.