반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Google Spreadsheet
- Tkinter
- Kotlin
- Google Excel
- GIT
- PANDAS
- 파이썬
- google apps script
- Redshift
- PostgreSQL
- dataframe
- math
- Apache
- string
- numpy
- PySpark
- Github
- django
- array
- Java
- Python
- matplotlib
- SQL
- c#
- list
- hive
- Excel
- Presto
- gas
Archives
- Today
- Total
목록PostgresHook (1)
달나라 노트
Airflow Operator : PostgresHook (PostgreSQL query 실행)
Airflow에서 PostgresHook은 PostgreSQL database와 연결하여 PostgreSQL query를 실행하는 등의 작업을 해줍니다.PostgresOperator와 차이점이 무엇이며, PostgresHook은 어떨 때 쓰면 용이한지 알아봅시다. PostgresHook은 특히 PythonOperator와 같이 사용하면 용이하므로 아래 예시도 PythonOperator와 같이 사용하는 상황을 가정해보았습니다. from airflow import DAGfrom airflow.operators.python import PythonVirtualenvOperatordag = DAG( dag_id='test_dag', start_date=datetime.datetime(2022, 9..
Airflow/Airflow Operator
2025. 10. 18. 13:34