https://prefect.io logo
n

Newskooler

10/01/2020, 3:15 PM
Hi 👋, If I do a
my_function.map(a, b)
where
len(a)
is 2 and
len(b)
is 5, will this result in 10 runs? Currently I think it only runs twice : / 🤔
n

nicholas

10/01/2020, 3:19 PM
Hi @Newskooler - I think that's correct that it will only run twice - subsequent iterations on
b
would be accessing non-existent values for
a
, so the map has to appeal to the lowest common denominator
n

Newskooler

10/01/2020, 3:40 PM
Okay; i was thinking suggest this to be changed, as I would consider this to be unexpected behaviour. Should I or is this the desired behaviour?
n

nicholas

10/01/2020, 3:42 PM
I would consider this to be desired behavior but you're welcome to open a ticket or a discussion thread on GitHub to describe the behavior you'd like to see for your use case; it's possible others have the same thought.
👍 1
n

Newskooler

10/01/2020, 3:43 PM
Okay, will do that. :) thanks!
😄 1
n

nicholas

10/01/2020, 4:17 PM
Good stuff @Newskooler, thank you 🙂
👍 1