Skip to content

Commit

Permalink
Adding tojson filter to example_inlet_event_extra example dag (#41873) (
Browse files Browse the repository at this point in the history
#41890)

(cherry picked from commit 87a4a51)

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
  • Loading branch information
2 people authored and utkarsharma2 committed Sep 2, 2024
1 parent a6dfae3 commit 09ec261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/example_dags/example_inlet_event_extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ def read_dataset_event(*, inlet_events=None):
BashOperator(
task_id="read_dataset_event_from_classic",
inlets=[ds],
bash_command="echo {{ inlet_events['s3://output/1.txt'][-1].extra }}",
bash_command="echo '{{ inlet_events['s3://output/1.txt'][-1].extra | tojson }}'",
)

0 comments on commit 09ec261

Please sign in to comment.