apache-airflow-providers-postgres 6.4.0rc1__py3-none-any.whl → 6.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- airflow/providers/postgres/__init__.py +3 -3
- airflow/providers/postgres/dialects/postgres.py +2 -2
- airflow/providers/postgres/hooks/postgres.py +8 -11
- {apache_airflow_providers_postgres-6.4.0rc1.dist-info → apache_airflow_providers_postgres-6.5.0.dist-info}/METADATA +16 -14
- apache_airflow_providers_postgres-6.5.0.dist-info/RECORD +14 -0
- apache_airflow_providers_postgres-6.5.0.dist-info/licenses/NOTICE +5 -0
- apache_airflow_providers_postgres-6.4.0rc1.dist-info/RECORD +0 -13
- {apache_airflow_providers_postgres-6.4.0rc1.dist-info → apache_airflow_providers_postgres-6.5.0.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_postgres-6.4.0rc1.dist-info → apache_airflow_providers_postgres-6.5.0.dist-info}/entry_points.txt +0 -0
- {airflow/providers/postgres → apache_airflow_providers_postgres-6.5.0.dist-info/licenses}/LICENSE +0 -0
|
@@ -29,11 +29,11 @@ from airflow import __version__ as airflow_version
|
|
|
29
29
|
|
|
30
30
|
__all__ = ["__version__"]
|
|
31
31
|
|
|
32
|
-
__version__ = "6.
|
|
32
|
+
__version__ = "6.5.0"
|
|
33
33
|
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
|
35
|
-
"2.
|
|
35
|
+
"2.11.0"
|
|
36
36
|
):
|
|
37
37
|
raise RuntimeError(
|
|
38
|
-
f"The package `apache-airflow-providers-postgres:{__version__}` needs Apache Airflow 2.
|
|
38
|
+
f"The package `apache-airflow-providers-postgres:{__version__}` needs Apache Airflow 2.11.0+"
|
|
39
39
|
)
|
|
@@ -41,7 +41,7 @@ class PostgresDialect(Dialect):
|
|
|
41
41
|
"""
|
|
42
42
|
if schema is None:
|
|
43
43
|
table, schema = self.extract_schema_from_table(table)
|
|
44
|
-
table = self.unescape_word(table)
|
|
44
|
+
table = self.unescape_word(table) or table
|
|
45
45
|
schema = self.unescape_word(schema) if schema else None
|
|
46
46
|
query = """
|
|
47
47
|
select kcu.column_name
|
|
@@ -75,7 +75,7 @@ class PostgresDialect(Dialect):
|
|
|
75
75
|
) -> list[str] | None:
|
|
76
76
|
if schema is None:
|
|
77
77
|
table, schema = self.extract_schema_from_table(table)
|
|
78
|
-
table = self.unescape_word(table)
|
|
78
|
+
table = self.unescape_word(table) or table
|
|
79
79
|
schema = self.unescape_word(schema) if schema else None
|
|
80
80
|
query = """
|
|
81
81
|
select column_name,
|
|
@@ -24,7 +24,6 @@ from copy import deepcopy
|
|
|
24
24
|
from typing import TYPE_CHECKING, Any, Literal, Protocol, TypeAlias, cast, overload
|
|
25
25
|
|
|
26
26
|
import psycopg2
|
|
27
|
-
import psycopg2.extensions
|
|
28
27
|
import psycopg2.extras
|
|
29
28
|
from more_itertools import chunked
|
|
30
29
|
from psycopg2.extras import DictCursor, NamedTupleCursor, RealDictCursor, execute_batch
|
|
@@ -522,19 +521,17 @@ class PostgresHook(DbApiHook):
|
|
|
522
521
|
azure_conn = Connection.get(azure_conn_id)
|
|
523
522
|
except AttributeError:
|
|
524
523
|
azure_conn = Connection.get_connection_from_secrets(azure_conn_id) # type: ignore[attr-defined]
|
|
525
|
-
azure_base_hook: AzureBaseHook = azure_conn.get_hook()
|
|
526
|
-
scope = conf.get("postgres", "azure_oauth_scope", fallback=self.default_azure_oauth_scope)
|
|
527
524
|
try:
|
|
528
|
-
|
|
529
|
-
except
|
|
530
|
-
if
|
|
531
|
-
raise
|
|
532
|
-
"
|
|
533
|
-
"Please upgrade apache-airflow-providers-microsoft-azure>=12.8.0"
|
|
534
|
-
name=e.name,
|
|
535
|
-
obj=e.obj,
|
|
525
|
+
azure_base_hook: AzureBaseHook = azure_conn.get_hook()
|
|
526
|
+
except TypeError as e:
|
|
527
|
+
if "required positional argument: 'sdk_client'" in str(e):
|
|
528
|
+
raise AirflowOptionalProviderFeatureException(
|
|
529
|
+
"Getting azure token is not supported by current version of 'AzureBaseHook'. "
|
|
530
|
+
"Please upgrade apache-airflow-providers-microsoft-azure>=12.8.0"
|
|
536
531
|
) from e
|
|
537
532
|
raise
|
|
533
|
+
scope = conf.get("postgres", "azure_oauth_scope", fallback=self.default_azure_oauth_scope)
|
|
534
|
+
token = azure_base_hook.get_token(scope).token
|
|
538
535
|
return cast("str", conn.login or azure_conn.login), token, conn.port or 5432
|
|
539
536
|
|
|
540
537
|
def get_table_primary_key(self, table: str, schema: str | None = "public") -> list[str] | None:
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apache-airflow-providers-postgres
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.5.0
|
|
4
4
|
Summary: Provider package apache-airflow-providers-postgres for Apache Airflow
|
|
5
5
|
Keywords: airflow-provider,postgres,airflow,integration
|
|
6
6
|
Author-email: Apache Software Foundation <dev@airflow.apache.org>
|
|
7
7
|
Maintainer-email: Apache Software Foundation <dev@airflow.apache.org>
|
|
8
8
|
Requires-Python: >=3.10
|
|
9
9
|
Description-Content-Type: text/x-rst
|
|
10
|
+
License-Expression: Apache-2.0
|
|
10
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
12
|
Classifier: Environment :: Console
|
|
12
13
|
Classifier: Environment :: Web Environment
|
|
@@ -14,28 +15,29 @@ Classifier: Intended Audience :: Developers
|
|
|
14
15
|
Classifier: Intended Audience :: System Administrators
|
|
15
16
|
Classifier: Framework :: Apache Airflow
|
|
16
17
|
Classifier: Framework :: Apache Airflow :: Provider
|
|
17
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
22
|
Classifier: Topic :: System :: Monitoring
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Requires-Dist: apache-airflow
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
License-File: NOTICE
|
|
25
|
+
Requires-Dist: apache-airflow>=2.11.0
|
|
26
|
+
Requires-Dist: apache-airflow-providers-common-compat>=1.8.0
|
|
27
|
+
Requires-Dist: apache-airflow-providers-common-sql>=1.23.0
|
|
26
28
|
Requires-Dist: psycopg2-binary>=2.9.9; python_version < '3.13'
|
|
27
29
|
Requires-Dist: psycopg2-binary>=2.9.10; python_version >= '3.13'
|
|
28
30
|
Requires-Dist: asyncpg>=0.30.0
|
|
29
|
-
Requires-Dist: apache-airflow-providers-amazon>=2.6.
|
|
30
|
-
Requires-Dist: apache-airflow-providers-microsoft-azure ; extra == "microsoft-azure"
|
|
31
|
+
Requires-Dist: apache-airflow-providers-amazon>=2.6.0 ; extra == "amazon"
|
|
32
|
+
Requires-Dist: apache-airflow-providers-microsoft-azure>=12.8.0 ; extra == "microsoft-azure"
|
|
31
33
|
Requires-Dist: apache-airflow-providers-openlineage ; extra == "openlineage"
|
|
32
34
|
Requires-Dist: pandas>=2.1.2 ; extra == "pandas" and ( python_version <"3.13")
|
|
33
35
|
Requires-Dist: pandas>=2.2.3 ; extra == "pandas" and ( python_version >="3.13")
|
|
34
36
|
Requires-Dist: polars>=1.26.0 ; extra == "polars"
|
|
35
37
|
Requires-Dist: psycopg[binary]>=3.2.9 ; extra == "psycopg"
|
|
36
38
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
|
37
|
-
Project-URL: Changelog, https://airflow.
|
|
38
|
-
Project-URL: Documentation, https://airflow.
|
|
39
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.5.0/changelog.html
|
|
40
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.5.0
|
|
39
41
|
Project-URL: Mastodon, https://fosstodon.org/@airflow
|
|
40
42
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
|
41
43
|
Project-URL: Source Code, https://github.com/apache/airflow
|
|
@@ -72,7 +74,7 @@ Provides-Extra: psycopg
|
|
|
72
74
|
|
|
73
75
|
Package ``apache-airflow-providers-postgres``
|
|
74
76
|
|
|
75
|
-
Release: ``6.
|
|
77
|
+
Release: ``6.5.0``
|
|
76
78
|
|
|
77
79
|
|
|
78
80
|
`PostgreSQL <https://www.postgresql.org/>`__
|
|
@@ -85,7 +87,7 @@ This is a provider package for ``postgres`` provider. All classes for this provi
|
|
|
85
87
|
are in ``airflow.providers.postgres`` python package.
|
|
86
88
|
|
|
87
89
|
You can find package information and changelog for the provider
|
|
88
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.
|
|
90
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.5.0/>`_.
|
|
89
91
|
|
|
90
92
|
Installation
|
|
91
93
|
------------
|
|
@@ -102,7 +104,7 @@ Requirements
|
|
|
102
104
|
========================================== ======================================
|
|
103
105
|
PIP package Version required
|
|
104
106
|
========================================== ======================================
|
|
105
|
-
``apache-airflow`` ``>=2.
|
|
107
|
+
``apache-airflow`` ``>=2.11.0``
|
|
106
108
|
``apache-airflow-providers-common-compat`` ``>=1.8.0``
|
|
107
109
|
``apache-airflow-providers-common-sql`` ``>=1.23.0``
|
|
108
110
|
``psycopg2-binary`` ``>=2.9.9; python_version < "3.13"``
|
|
@@ -140,7 +142,7 @@ Optional dependencies
|
|
|
140
142
|
Extra Dependencies
|
|
141
143
|
=================== =====================================================================================
|
|
142
144
|
``amazon`` ``apache-airflow-providers-amazon>=2.6.0``
|
|
143
|
-
``microsoft.azure`` ``apache-airflow-providers-microsoft-azure``
|
|
145
|
+
``microsoft.azure`` ``apache-airflow-providers-microsoft-azure>=12.8.0``
|
|
144
146
|
``openlineage`` ``apache-airflow-providers-openlineage``
|
|
145
147
|
``pandas`` ``pandas>=2.1.2; python_version <"3.13"``, ``pandas>=2.2.3; python_version >="3.13"``
|
|
146
148
|
``polars`` ``polars>=1.26.0``
|
|
@@ -148,5 +150,5 @@ Extra Dependencies
|
|
|
148
150
|
=================== =====================================================================================
|
|
149
151
|
|
|
150
152
|
The changelog for the provider package can be found in the
|
|
151
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.
|
|
153
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.5.0/changelog.html>`_.
|
|
152
154
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
airflow/providers/postgres/__init__.py,sha256=5X0B5_o14nPwV4BiPGUX1Rlw1kW0i9VWK6sbcqf2ITk,1497
|
|
2
|
+
airflow/providers/postgres/get_provider_info.py,sha256=tLd8Kw5q9bE0XewMKJ4zzwYQoPh_G-E3mmFxK8QzfB0,3269
|
|
3
|
+
airflow/providers/postgres/assets/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
4
|
+
airflow/providers/postgres/assets/postgres.py,sha256=XNhOJCbOA_soaaiS73JjULMqAM_7PBryhToe8FJREA0,1522
|
|
5
|
+
airflow/providers/postgres/dialects/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
6
|
+
airflow/providers/postgres/dialects/postgres.py,sha256=bsliwzooipmgluJsjGHYQHfZNWYxzzZ3WvaBLAy3u3A,5332
|
|
7
|
+
airflow/providers/postgres/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
|
8
|
+
airflow/providers/postgres/hooks/postgres.py,sha256=zjAJzkhMEae5cJxVl4KHcmdev2YRuTkpWytuH7UgwPY,28800
|
|
9
|
+
apache_airflow_providers_postgres-6.5.0.dist-info/entry_points.txt,sha256=dhtJi6PTWHd6BwKhmI4OtSPvQVI_p0yYWI0eba83HqY,104
|
|
10
|
+
apache_airflow_providers_postgres-6.5.0.dist-info/licenses/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
|
11
|
+
apache_airflow_providers_postgres-6.5.0.dist-info/licenses/NOTICE,sha256=E3-_E02gwwSEFzeeWPKmnIjOoos3hW28CLISV6sYrbQ,168
|
|
12
|
+
apache_airflow_providers_postgres-6.5.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
13
|
+
apache_airflow_providers_postgres-6.5.0.dist-info/METADATA,sha256=wKX-j-e2Q3TJTH4Jq9AP6AtKb_1IXhVl6t67ZcToJUM,7706
|
|
14
|
+
apache_airflow_providers_postgres-6.5.0.dist-info/RECORD,,
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
airflow/providers/postgres/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
|
2
|
-
airflow/providers/postgres/__init__.py,sha256=UitRehE_s7O23y-mxHZndABZfxCBajA-IG0m46lPqUQ,1497
|
|
3
|
-
airflow/providers/postgres/get_provider_info.py,sha256=tLd8Kw5q9bE0XewMKJ4zzwYQoPh_G-E3mmFxK8QzfB0,3269
|
|
4
|
-
airflow/providers/postgres/assets/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
5
|
-
airflow/providers/postgres/assets/postgres.py,sha256=XNhOJCbOA_soaaiS73JjULMqAM_7PBryhToe8FJREA0,1522
|
|
6
|
-
airflow/providers/postgres/dialects/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
7
|
-
airflow/providers/postgres/dialects/postgres.py,sha256=qBw5MQngxLJQu0pxeHOKlguPePnAg0-PftxvMnqPZPM,5314
|
|
8
|
-
airflow/providers/postgres/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
|
9
|
-
airflow/providers/postgres/hooks/postgres.py,sha256=s-tU1m3UMDojNscsR05X6RI55Pk0KxyKcqFr0vYKXlI,28845
|
|
10
|
-
apache_airflow_providers_postgres-6.4.0rc1.dist-info/entry_points.txt,sha256=dhtJi6PTWHd6BwKhmI4OtSPvQVI_p0yYWI0eba83HqY,104
|
|
11
|
-
apache_airflow_providers_postgres-6.4.0rc1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
12
|
-
apache_airflow_providers_postgres-6.4.0rc1.dist-info/METADATA,sha256=cAnZwCDnaBFWAeAhQF20TYThdxYX5abQNFFkSRsA_Yk,7708
|
|
13
|
-
apache_airflow_providers_postgres-6.4.0rc1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{airflow/providers/postgres → apache_airflow_providers_postgres-6.5.0.dist-info/licenses}/LICENSE
RENAMED
|
File without changes
|