https://delta.io logo
c

Cole MacKenzie

06/28/2023, 10:00 PM
Maybe this is just my rust n00biness, but why is it so hard to go from
HashMap<String, String>
to a
Vec<ParitionFilter<_>>
?
r

rtyler

06/28/2023, 10:01 PM
hah, because PartitionFilter is an annoying interface born out of necessity 😛
c

Cole MacKenzie

06/28/2023, 10:01 PM
i cri
r

rtyler

06/28/2023, 10:04 PM
evrytiem
do you need help with the map? I can gist ya something
c

Cole MacKenzie

06/28/2023, 10:05 PM
That would be great if you have something handy haha
I got around it by annotating the whole function with lifetime <'a> and switching the map to
HashMap<&'a str, &'a str>
. No idea if that is "correct" though
jk, that didn't work either
w

Will Jones

06/28/2023, 10:22 PM
Oh I've forgotten about those lifetimes... Maybe we should make it Cow<str> or Arc<str> or Box<str>?
c

Cole MacKenzie

06/28/2023, 10:41 PM
I think
Cow<str>
makes the most sense?
¯\_(ツ)_/¯
2 Views