apache-airflow-providers-postgres

變更日誌

6.1.3

錯誤修復 (Bug Fixes)

  • 修復 PostgresHook Json 序列化 (#49120)

其他 (Misc)

  • 移除 多餘的 else (#49199)

6.1.2

其他 (Misc)

  • 更新 common.sql 提供者 最低版本至 1.23.0 (#48416)

6.1.1

其他 (Misc)

  • 升級 flit 3.11.0 (#46938)

6.1.0

新特性 (Features)

  • DbApiHook 中引入 方言概念 (#41327)

錯誤修復 (Bug Fixes)

  • 修復 common sql 提供者 方言中 作為列名 特殊字元 保留字 的轉義問題 (#45640)

其他 (Misc)

  • psycopg2 提升到 2.9.9 以可能避免 Python 3.12 上崩潰 (#46431)

  • 新增 描述 引入 方言概念原因的 ADR 文件 (#45456)

  • psycopg2-binary 最低版本提升到 2.9.7 (#45635)

6.0.0

注意

Apache Airflow 提供者支援策略 中所述,此提供者版本僅適用於 Airflow 2.9+。

重大變更 (Breaking changes)

警告

Postgres 提供者包中已移除所有已棄用的類、引數和特性。引入了以下重大變更:

  • Hooks
    • schema 引數已重新命名為 database,因為它包含資料庫名稱。已移除棄用的引數、getter 和 setter。請使用 database 設定資料庫名稱。

  • 操作器 (Operators)
    • 移除 airflow.providers.postgres.operators.postgres.PostgresOperator。請改用 airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator

  • 移除 Postgres 中的提供者棄用 (#44705)

其他 (Misc)

  • 將提供者中的 最低 Airflow 版本提升到 Airflow 2.9.0 (#44956)

  • 更新多個提供者文件中的 DAG 示例連結 (#44034)

  • 新增基本的 asyncio 支援 (#43944)

5.14.0

新特性 (Features)

  • PostgresHook 新增 AWS Redshift Serverless 支援 (#43669)

錯誤修復 (Bug Fixes)

  • 修復 PostgresHook 獲取 AWS Redshift Serverless 憑據時的錯誤 (#43807)

其他 (Misc)

  • DbApiHook, PrestoHook, TrinoHook 新增 支援分號剝離 (#41916)

5.13.1

其他 (Misc)

  • dataset 相關的 python 變數名重新命名為 asset (#41348)

5.13.0

新特性 (Features)

  • 特性: 記錄提供者 postgres 的客戶端 db 訊息 (#40171)

其他 (Misc)

  • 通用化 DbApiHook 中的 連線快取 以提高效能 (#40751)

5.12.0

注意

Apache Airflow 提供者支援策略 中所述,此提供者版本僅適用於 Airflow 2.8+。

其他 (Misc)

  • 將提供者中的 最低 Airflow 版本提升到 Airflow 2.8.0 (#41396)

5.11.3

其他 (Misc)

  • 清理 DbApiHook 中剩餘的 getattr connection (#40665)

5.11.2

其他 (Misc)

  • 實現帶有最低直接依賴解析的 按提供者進行的測試 (#39946)

5.11.1

錯誤修復 (Bug Fixes)

  • 修復: postgresql 提供者 'get_uri' 中使用 'sqlalchemy_url' 屬性 (#38831)

其他 (Misc)

  • 更快的 'airflow_version' 匯入 (#39552)

  • 簡化 'airflow_version' 匯入 (#39497)

5.11.0

注意

Apache Airflow 提供者支援策略 中所述,此提供者版本僅適用於 Airflow 2.7+。

錯誤修復 (Bug Fixes)

  • 修復 PostgresOperator 中的 schema 賦值 (#39264)

其他 (Misc)

  • 將提供者中的 最低 Airflow 版本提升到 Airflow 2.7.0 (#39240)

  • DbApiHook 中插入行時 總是使用 executemany 方法 ,因為它快得多 (#38715)

5.10.2

其他 (Misc)

  • 實現 AIP-60 資料集 URI 格式 (#37005)

5.10.1

其他 (Misc)

  • 特性: 將所有類、函式、方法的棄用切換到 裝飾器 (#36876)

5.10.0

新特性 (Features)

  • 使 ODBC "placeholder" UI 中可配置 (#36000)

錯誤修復 (Bug Fixes)

  • 在子類中遵循 BaseHook connection fields 方法簽名 (#36086)

5.9.0

注意

Apache Airflow 提供者支援策略 中所述,此提供者版本僅適用於 Airflow 2.6+。

其他 (Misc)

  • 將提供者中的 最低 Airflow 版本提升到 Airflow 2.6.0 (#36017)

5.8.0

新特性 (Features)

  • 重構 PostgresHook 中的遊標檢索 (#35498)

5.7.1

錯誤修復 (Bug Fixes)

  • 'PostgresOperator' 不應覆蓋 'SQLExecuteQueryOperator.template_fields' (#34969)

5.7.0

注意

Apache Airflow 提供者支援策略 中所述,此提供者版本僅適用於 Airflow 2.5+。

新特性 (Features)

  • PostgresHook 新增 'get_ui_field_behaviour()' 方法 (#34811)

其他 (Misc)

  • 提升提供者的最低 airflow 版本 (#34728)

5.6.1

其他 (Misc)

  • 透過將一些模組放入 型別檢查塊中,改進 Airflow 提供者中的模組匯入 (#33754)

  • 在提供者中使用 帶有多個上下文的單一  語句 ,而不是巢狀  語句 (#33768)

  • 在提供者中使用 字面字典 而不是呼叫 dict() (#33761)

5.6.0

新特性 (Features)

  • openlineage, postgres: Postgres 新增 OpenLineage 支援 (#31617)

其他 (Misc)

  • 在提供者模組和類的 docstring 中新增 棄用資訊 (#32536)

5.5.2

其他 (Misc)

  • 棄用 'runtime_parameters' ,改用 'hook_params' 中的 options (#32345)

5.5.1

注意

此版本放棄了對 Python 3.7 的支援

其他 (Misc)

  • 新增提供者放棄 Python 3.7 的說明 (#32015)

5.5.0

注意

Apache Airflow 提供者支援策略 中所述,此提供者版本僅適用於 Airflow 2.4+。

其他 (Misc)

  • 提升提供者中的最低 Airflow 版本 (#30917)

5.4.0

新特性 (Features)

  • 重新引入 psycopg2-binary 作為依賴,而不是 psycopg (#28316)

5.3.1

錯誤修復 (Bug Fixes)

  • 提升 common.sql 提供者至 1.3.1 (#27888)

5.3.0

注意

Apache Airflow 提供者支援策略 中所述,此提供者版本僅適用於 Airflow 2.3+。

其他 (Misc)

  • 將所有提供者的最低 airflow 版本移至 2.3.0 (#27196)

新特性 (Features)

  • PostgresHook: 當所有目標欄位都是主鍵時,新增 ON CONFLICT DO NOTHING 語句 (#26661)

  • 新增 SQLExecuteQueryOperator (#25717)

  • PostgresHook 中將 schema 重新命名為 database (#26744)

5.2.2

其他 (Misc)

  • common-sql 新增 lower bound (#25789)

5.2.1

錯誤修復 (Bug Fixes)

  • 提升 common-sql 依賴以修復 SQLTableCheckOperator 的問題 (#26143)

5.2.0

新特性 (Features)

  • IAM 授權期間,僅使用 公共的 AwsHook 方法 (#25424)

  • 統一 DbApiHook.run() 方法及其覆蓋方法 (#23971)

5.1.0

新特性 (Features)

  • 將所有 SQL 類移至 common-sql 提供者 (#24836)

5.0.0

重大變更 (Breaking changes)

注意

Apache Airflow 提供者支援策略 中所述,此提供者版本僅適用於 Airflow 2.2+。

4.1.0

新特性 (Features)

  • 新增向 postgres operator 傳遞配置引數的能力 (#21551)

錯誤修復 (Bug Fixes)

  • 修復所有提供者中錯誤新增的 install_requires (#22382)

4.0.1

其他 (Misc)

  • PyPI 中新增 Trove 分類器 (Framework :: Apache Airflow :: Provider)

4.0.0

Postgres get_uri() 返回的 URI 現在使用 postgresql:// 字首,而不是 postgres:// 字首,後者是 SQLAlchemy 1.4.0+ 唯一支援的字首。任何使用 get_uri() 的地方如果期望 postgres:// 字首,則需要更新以反映此變化。

重大變更 (Breaking changes)

  • postgres:// 的使用替換為 postgresql:// (#21205)

新特性 (Features)

  • 新增更多 SQL 模板欄位渲染器 (#21237)

  • 為新的 SQL lexer 新增條件性的 'template_fields_renderers' 檢查 (#21403)

其他 (Misc)

  • 支援 Python 3.10

3.0.1

其他 (Misc)

  • 使 DbApiHook 使用 Connection 中的 get_uri (#21764)

2.4.0

新特性 (Features)

  • 19489 - postgres 連線傳遞 client_encoding (#19827)

  • Amazon 提供者移除棄用,第二次嘗試 (#19815)

錯誤修復 (Bug Fixes)

2.3.0

新特性 (Features)

  • S3ToRedshift 操作器上新增 upsert 方法 (#18027)

錯誤修復 (Bug Fixes)

  • 修復 PostgresOperator 的示例 dag (#18236)

2.2.0

新特性 (Features)

  • 使 DBApiHook 中的 schema 為私有 (#17423)

其他 (Misc)

  • 最佳化 Airflow 2.2.0 的連線匯入

2.1.0 (已撤回)

警告

此版本已 撤回,原因是: The postgres operator seem to conflict with earlier versions of Airflow (postgres 操作器似乎與早期版本的 Airflow 衝突)

新特性 (Features)

  • 新增 schema 作為 DbApiHook 例項屬性 (#16521)

2.0.0

重大變更 (Breaking changes)

  • 自動應用 apply_default 裝飾器 (#15667)

警告

由於移除了 apply_default 裝飾器,此提供者版本需要 Airflow 2.1.0+。如果您的 Airflow 版本小於 2.1.0,並且您想安裝此提供者版本,請先將 Airflow 升級到至少 2.1.0。否則您的 Airflow 包版本將自動升級,並且您必須手動執行 airflow upgrade db 來完成遷移。

新特性 (Features)

  • PostgresHook: 深度複製 connection 以避免修改 connection 物件 (#15412)

  • postgres_hook_aws_conn_id (#16100)

1.0.2

  • 不將 cluster-identifier 轉發給 psycopg2 (#15360)

1.0.1

更新了文件和 readme 檔案。添加了 Postgres Operator 的操作指南 (HowTo guide)。

1.0.0

提供者初始版本。

此條目有幫助嗎?