aws / aws/aws-step-functions-data-science-sdk-python

Feature Request: Support placeholders for Map state

Open
#101 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
299
Forks
84
PR merge metrics
No merged PRs in 30d

Description

Currently I am not able to pass execution input to a Map state. If I try to pass execution input to map state it throws 'Object of type 'ExecutionInput' is not JSON serializable' . So is it possible to add palceholder support to Map state.

```
input_data_check_map_step= steps.states.Map(state_id='input_data_check_map',
iterator=input_data_check_lambda_task,
input_path=execution_input,
items_path=execution_input['input_data_dirs'],
parameters={'input_dir':'$.Map.Item.Value','fcst_date':"$.fcst_date"},
max_concurrency=5,
comment='Run input data checks in dynamic parllel state',
result_path='$.InputDataCheckRes')
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Map state example and tracing how execution input, input_path, and items_path are serialized. Review the Map state implementation and related tests, if present, to determine the intended placeholder behavior. Done means execution input can be passed to a Map state without the JSON serialization error, with coverage for the demonstrated case.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.