aws / aws/aws-step-functions-data-science-sdk-python
`stepfunctions.steps.states.State.output()` doesn't seem to respect result_path
- Lingua principale
- Python
- Stelle
- 299
- Fork
- 84
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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!
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dal punto di ingresso `State.output()` e dalla gestione di `result_path`, quindi riproduci il problema usando l’esempio `LambdaStep` riportato. Traccia come viene assemblato `output()["Payload"].to_jsonpath()` e verifica se il result path viene applicato; il lavoro è completato quando il comportamento è corretto oppure l’uso supportato è documentato chiaramente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, python
- Ambito
- backend, cloud
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 50/100