Files
airflow-dags/clickhouse_dag_new.py
2025-09-23 12:49:25 +03:00

17 lines
413 B
Python

from airflow import DAG
from airflow.providers.postgres.operators.postgres import PostgresOperator
from datetime import datetime
with DAG(
dag_id="clickhouse_list_tables_1",
start_date=datetime(2025, 1, 1),
schedule_interval=None,
catchup=False,
) as dag:
list_tables = PostgresOperator(
task_id="list_tables",
postgres_conn_id="clickhouse_db",
sql="SELECT 1;"
)