-
Notifications
You must be signed in to change notification settings - Fork 414
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: omit common prefixes in azure list_objs
#683
Conversation
Hi @roeap, The vacuum tests panic with the following error message:
|
9ff1705
to
0d2ad79
Compare
@Blajda - how about now? :) |
430faed
to
c0dc9f9
Compare
Still fails due to the prefix but it's closer. Just missing the account name
|
c0dc9f9
to
e7c616e
Compare
One more iteration ... |
Yeah that works. Everything passes now expect for |
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.
Looks good, but had a readability suggestion that I think is worth including.
rust/src/storage/azure/mod.rs
Outdated
modified: p.last_modified, | ||
size: Some(p.content_length), | ||
}) | ||
Ok(paths) => Either::Left(stream::iter(paths.into_iter().flat_map(|p| { |
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.
Huh I didn't know flat_map
worked on Option
. Would have guessed to use filter_map
usually, and it might be a bit clearer?
Ok(paths) => Either::Left(stream::iter(paths.into_iter().flat_map(|p| { | |
Ok(paths) => Either::Left(stream::iter(paths.into_iter().filter_map(|p| { |
Description
Adls gen2 with hierarchical namespaces enabled has a notion of "directories" in an object store, this is in contrast to other object store implementations. This PR brings the behaviour in line with other storage backend implementations in this crate.
leaving this as a draft to see what else needs to be done for azure to be en par with local and s3 in #682.All backend related vacuum tests for azure are passing with this in #682.Related Issue(s)
towards #647
Documentation