witty-action-93503
11/15/2024, 8:32 PMmap_task
that seems counterintuitive:
Current behavior:
• Each subtask returns a List containing exactly one element
• map_task
aggregates these single-element lists into a final List of multiple elements
My expected behavior:
• Each subtask should return its output directly (not wrapped in a List)
• map_task
would collect these individual outputs into the final List
I'm trying to understand:
1. Why was array_node designed this way initially?
2. Would returning direct values from subtasks (instead of single-element lists) be a better design?
I believe the current design may be why this PR (flyte#5996) needed a workaround solution. Would changing the subtask output behavior to return direct values instead of single-element lists be a better approach?thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
witty-action-93503
11/20/2024, 7:19 PMthankful-minister-83577
witty-action-93503
11/20/2024, 7:25 PMthankful-minister-83577
thankful-minister-83577
witty-action-93503
11/20/2024, 7:28 PMthankful-minister-83577
thankful-minister-83577
high-accountant-32689
11/21/2024, 3:50 PMCollection[OutputType]
, instead of OutputType
, we end up setting inferredType
in that case to the wrong type. I'll follow up on this today.high-accountant-32689
11/22/2024, 1:41 AMwitty-action-93503
11/22/2024, 2:27 AM