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

`stepfunctions.steps.states.State.output()` doesn't seem to respect result_path

未关闭
#58 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
299
派生
84
PR 合并指标
30 天内没有已合并 PR

描述

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!

贡献指南

打开贡献指南

调研方向

从 `State.output()` 入口点和 `result_path` 的处理开始,然后使用报告中的 `LambdaStep` 示例重现该问题。跟踪 `output()["Payload"].to_jsonpath()` 的组装过程,并验证是否应用了 result path;当行为得到修正或受支持的用法得到明确记录时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
aws, python
领域
backend, cloud
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
50/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。