aws / aws/aws-step-functions-data-science-sdk-python
`stepfunctions.steps.states.State.output()` doesn't seem to respect result_path
- Dominant language
- Python
- Stars
- 299
- Forks
- 84
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
there seems to be an issue if `stepfunctions.steps.states.State.output()` is used together with `result_path`. For example:
```
lambda_state_first = LambdaStep(
state_id="MyFirstLambdaStep",
parameters={
"FunctionName": "MakeApiCall",
"Payload": {
"input": "20192312"
}
},
result_path="$.NewOutputPath"
)
lambda_state_first.output()["Payload"].to_jsonpath()
```
I would expect that the output is `"$['NewOutputPath']['Payload']"`, but it's actually `"$['Payload']"`. Is that expected behavior and if so, how is the correct way to use `result_path` together with `output()`?
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.