How to obtain and process mysql records using Airflow?

前端 未结 1 1693
庸人自扰
庸人自扰 2021-02-05 07:25

I need to

1. run a select query on MYSQL DB and fetch the records.              
2. Records are processed by python script.

I am unsure about

1条回答
  •  遇见更好的自我
    2021-02-05 07:45

    Sure, just create a hook or operator and call the get_records() method: https://airflow.readthedocs.io/en/stable/_modules/airflow/hooks/dbapi_hook.html

    0 讨论(0)
提交回复
热议问题