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
  • Loading branch information
amoghrajesh authored Aug 30, 2024
1 parent 9e40107 commit 87a4a51
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 87a4a51

Please sign in to comment.