apache-airflow-providers-postgres
變更日誌¶
6.0.0¶
注意
此供應商版本僅適用於 Airflow 2.9+,如 Apache Airflow 供應商支援政策 中所述。
重大變更¶
警告
所有已棄用的類別、參數和功能已從 Postgres 供應商套件中移除。以下是引入的重大變更
- Hooks
`schema` 參數已重新命名為 `database`,因為它包含資料庫名稱。已移除已棄用的參數、getter 和 setter。請使用 `database` 來設定資料庫名稱。
- Operators
移除 `airflow.providers.postgres.operators.postgres.PostgresOperator`。請改用 `airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator`。
移除 Postgres 供應商棄用 (#44705)
其他¶
將供應商中的最低 Airflow 版本提升至 Airflow 2.9.0 (#44956)
更新多個供應商文件中的 DAG 範例連結 (#44034)
新增基本 asyncio 支援 (#43944)
5.14.0¶
功能¶
新增 AWS Redshift Serverless 支援至 PostgresHook (#43669)
錯誤修正¶
修正取得 AWS Redshift Serverless 憑證時的 PostgresHook 錯誤 (#43807)
其他¶
新增對 DbApiHook、PrestoHook 和 TrinoHook 的分號剝離支援 (#41916)
5.12.0¶
注意
此供應商版本僅適用於 Airflow 2.8+,如 Apache Airflow 供應商支援政策 中所述。
其他¶
將供應商中的最低 Airflow 版本提升至 Airflow 2.8.0 (#41396)
5.11.1¶
錯誤修正¶
修正:在 postgresql 供應商的 'get_uri' 中使用 'sqlalchemy_url' 屬性 (#38831)
其他¶
更快的 'airflow_version' 匯入 (#39552)
簡化 'airflow_version' 匯入 (#39497)
5.11.0¶
注意
此供應商版本僅適用於 Airflow 2.7+,如 Apache Airflow 供應商支援政策 中所述。
錯誤修正¶
修正 PostgresOperator 中的 schema 指派 (#39264)
其他¶
將供應商中的最低 Airflow 版本提升至 Airflow 2.7.0 (#39240)
在 DbApiHook 中插入資料列時,始終使用 executemany 方法,因為它速度快得多 (#38715)
5.9.0¶
注意
此供應商版本僅適用於 Airflow 2.6+,如 Apache Airflow 供應商支援政策 中所述。
其他¶
將供應商中的最低 Airflow 版本提升至 Airflow 2.6.0 (#36017)
5.7.0¶
注意
此供應商版本僅適用於 Airflow 2.5+,如 Apache Airflow 供應商支援政策 中所述。
功能¶
新增 'get_ui_field_behaviour()' 方法至 PostgresHook (#34811)
其他¶
提升供應商的最低 airflow 版本 (#34728)
5.6.1¶
其他¶
透過將某些模組匯入類型檢查區塊,改善 Airflow 供應商中的模組匯入 (#33754)
在供應商中使用具有多個上下文的單一陳述式,而不是巢狀陳述式 (#33768)
在供應商中使用字面字典,而不是呼叫 dict() (#33761)
5.6.0¶
功能¶
openlineage, postgres: 為 Postgres 新增 OpenLineage 支援 (#31617)
其他¶
將棄用資訊新增至供應商模組和類別的文件字串 (#32536)
5.3.0¶
注意
此供應商版本僅適用於 Airflow 2.3+,如 Apache Airflow 供應商支援政策 中所述。
其他¶
將所有供應商的最低 airflow 版本移至 2.3.0 (#27196)
功能¶
PostgresHook:當所有目標欄位都是主鍵時,新增 ON CONFLICT DO NOTHING 陳述式 (#26661)
新增 SQLExecuteQueryOperator (#25717)
在 PostgresHook 中將 schema 重新命名為 database (#26744)
5.0.0¶
重大變更¶
注意
此供應商版本僅適用於 Airflow 2.2+,如 Apache Airflow 供應商支援政策 中所述。
4.0.0¶
Postgres `get_uri()` 傳回的 URI 會傳回 `postgresql://` 而不是 `postgres://` 前綴,後者是 SQLAlchemy 1.4.0+ 唯一支援的前綴。任何使用 `postgres://` 前綴的 `get_uri()` 都應更新以反映此情況。
重大變更¶
將 postgres:// 的用法替換為 postgresql:// (#21205)
功能¶
新增更多 SQL 範本欄位渲染器 (#21237)
為新的 SQL 詞法分析器新增條件式 'template_fields_renderers' 檢查 (#21403)
其他¶
支援 Python 3.10
2.3.0¶
功能¶
在 S3ToRedshift operator 上新增 upsert 方法 (#18027)
錯誤修正¶
修正 PostgresOperator 的範例 dag (#18236)
2.1.0 (已撤回)¶
警告
此版本已被 **撤回**,原因:`postgres operator 似乎與較早版本的 Airflow 衝突`
功能¶
新增 schema 作為 DbApiHook 實例屬性 (#16521)
2.0.0¶
重大變更¶
自動套用 apply_default 裝飾器 (#15667)
警告
由於移除了 apply_default 裝飾器,此供應商版本需要 Airflow 2.1.0+。如果您的 Airflow 版本 < 2.1.0,並且您想要安裝此供應商版本,請先將 Airflow 升級至至少 2.1.0 版本。否則,您的 Airflow 套件版本將自動升級,您將必須手動執行 `airflow upgrade db` 以完成遷移。
功能¶
PostgresHook: deepcopy 連線以避免變更連線物件 (#15412)
postgres_hook_aws_conn_id (#16100)
1.0.2¶
不要將 cluster-identifier 轉發到 psycopg2 (#15360)
1.0.1¶
更新了文件和 readme 檔案。新增了 Postgres Operator 的操作指南。
1.0.0¶
供應商的初始版本。