add dag for clickhouse
This commit is contained in:
16
clickhouse_dag_new.py
Normal file
16
clickhouse_dag_new.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from airflow import DAG
|
||||
from airflow.providers.postgres.operators.postgres import PostgresOperator
|
||||
from datetime import datetime
|
||||
|
||||
with DAG(
|
||||
dag_id="clickhouse_list_tables",
|
||||
start_date=datetime(2025, 1, 1),
|
||||
schedule_interval=None,
|
||||
catchup=False,
|
||||
) as dag:
|
||||
|
||||
list_tables = PostgresOperator(
|
||||
task_id="list_tables",
|
||||
postgres_conn_id="clickhouse_http",
|
||||
sql="SELECT 1;"
|
||||
)
|
||||
Reference in New Issue
Block a user