Skip to content

Commit 09ec261

Browse files
potiukamoghrajesh
authored andcommitted
Adding tojson filter to example_inlet_event_extra example dag (#41873) (#41890)
(cherry picked from commit 87a4a51) Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
1 parent a6dfae3 commit 09ec261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airflow/example_dags/example_inlet_event_extra.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ def read_dataset_event(*, inlet_events=None):
5757
BashOperator(
5858
task_id="read_dataset_event_from_classic",
5959
inlets=[ds],
60-
bash_command="echo {{ inlet_events['s3://output/1.txt'][-1].extra }}",
60+
bash_command="echo '{{ inlet_events['s3://output/1.txt'][-1].extra | tojson }}'",
6161
)

0 commit comments

Comments
 (0)