<#3169 Fixed inputs map lp> Pull request opened by...
# flyte-github
c
#3169 Fixed inputs map lp Pull request opened by pvditt fixes: https://linear.app/unionai/issue/BB-2860/utilize-fixed-inputs-set-for-a-launch-plan-when-mapping-over-launch ## Why are the changes needed? Getting this change in here since this is a bug instead of an add on. Will add to union sdk as well. ## What changes were proposed in this pull request? When mapping over a launch plan with fixed inputs, don't set the fixed_inputs as part of the array node's interface ## How was this patch tested? • updated unit tests • tested launch plans, reference launch plans, and remote launch plans in dogfood
Copy code
simple_wf_lp_fixed_inputs = LaunchPlan.get_or_create(
    name="simple_wf_lp_fixed_inputs", workflow=simple_wf, fixed_inputs={"x": [-3, 0, 3]}
)


@workflow
def test_map_task() -> list[float]:
    x = [[1, 2, 3], [1, 2, 3]]
    y = [[5, 6, 7], [5, 6, 7]]
    return map_task(simple_wf_lp_fixed_inputs)(y=y)
Copy code
@reference_launch_plan(
    project="flytesnacks",
    domain="development",
    name="simple_wf_lp_fixed_inputs",
    version="o89vSTZ0r8ZY-6z_9OoUCA",
)
def simple_wf(
    y: list[int]
) -> float:
    return 1.0


@workflow
def map_over_ref_launch_plan():
    return map_task(simple_wf)(y=[[1, 2, 3]])
Copy code
remote = FlyteRemote(config=Config.auto(), default_project="flytesnacks", default_domain="development")
lp1 = remote.fetch_launch_plan(name="simple_wf_lp_fixed_inputs",
                               version="o89vSTZ0r8ZY-6z_9OoUCA")

@workflow
def map_over_remote_lp():
    return map_task(lp1)(y=[[1, 2, 3]])
### Setup process ### Screenshots ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs ## Docs link ### Summary by Bito This PR fixes a critical bug related to improper inclusion of fixed inputs when mapping over launch plans by introducing an excluded_inputs parameter and modifying the array node interface for proper literal-to-set conversion. The changes affect multiple core components including array nodes and task mapping functions, improving execution reliability while maintaining compatibility with existing tests. Unit tests added: True Estimated effort to review (1-5, lower is better): 2 flyteorg/flytekit
#3169 Fixed inputs map lp Pull request ready for review by pvditt flyteorg/flytekit