-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat: Exclude directories from glob expansion result #17174
Conversation
28f8da7
to
a262cc0
Compare
.then(|entry| async { Ok::<_, PolarsError>(entry.map_err(to_compute_err)?.location) }) | ||
.filter(|name| ready(name.as_ref().map_or(true, |name| matcher.is_matching(name)))) | ||
.try_collect() | ||
.await?; | ||
locations.sort_unstable(); |
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.
We did not previously use this function async fn glob
in our test suite even with FORCE_ASYNC, but in this PR we do, which led to lots of test failures as the files were not read in a consistent order due to not being sorted.
#[cfg(not(feature = "cloud"))] | ||
{ | ||
panic!("activate cloud feature") | ||
} | ||
|
||
#[cfg(feature = "cloud")] | ||
{ | ||
if !is_cloud && verbose { | ||
if force_async && verbose { |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
c8de205
to
07c8012
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17174 +/- ##
==========================================
+ Coverage 80.82% 80.85% +0.02%
==========================================
Files 1466 1466
Lines 192313 192378 +65
Branches 2745 2745
==========================================
+ Hits 155446 155553 +107
+ Misses 36364 36322 -42
Partials 503 503 ☔ View full report in Codecov by Sentry. |
c57de81
to
d5a82fc
Compare
@@ -164,7 +164,6 @@ impl Matcher { | |||
} | |||
} | |||
|
|||
#[tokio::main(flavor = "current_thread")] |
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.
Nice. This felt iffy to me.
Resolves #17105