atul-astronomer commented on issue #47770: URL: https://github.com/apache/airflow/issues/47770#issuecomment-2820266912
```python from __future__ import annotations import datetime from airflow.datasets import Dataset from airflow.decorators import task from airflow.sdk import DAG from airflow.providers.standard.operators.bash import BashOperator ds = Dataset("s3://output/1.txt") with DAG( dag_id="read_dataset_event_from_classic", catchup=False, start_date=datetime.datetime.min, schedule="@daily", tags=["dataset"], ): BashOperator( task_id="read_dataset_event_from_classic", inlets=[ds], bash_command="echo {{ inlet_events['s3://output/1.txt'][-1].extra }}", ) ``` @uranusjr -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org