apache-airflow-providers-postgres 6.2.2__tar.gz → 6.2.3__tar.gz
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.
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/PKG-INFO +6 -6
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/README.rst +3 -3
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/docs/changelog.rst +11 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/docs/index.rst +3 -3
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/provider.yaml +2 -1
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/pyproject.toml +3 -3
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/__init__.py +1 -1
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/hooks/postgres.py +7 -8
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/tests/unit/postgres/hooks/test_postgres.py +0 -19
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/docs/.latest-doc-only-change.txt +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/docs/commits.rst +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/docs/conf.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/docs/connections/postgres.rst +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/docs/dialects.rst +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/docs/installing-providers-from-sources.rst +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/docs/integration-logos/Postgres.png +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/docs/operators.rst +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/docs/redirects.txt +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/docs/security.rst +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/src/airflow/__init__.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/__init__.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/LICENSE +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/assets/__init__.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/assets/postgres.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/dialects/__init__.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/dialects/postgres.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/get_provider_info.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/hooks/__init__.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/tests/conftest.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/tests/system/__init__.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/tests/system/postgres/__init__.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/tests/system/postgres/example_postgres.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/tests/unit/__init__.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/tests/unit/postgres/__init__.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/tests/unit/postgres/assets/__init__.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/tests/unit/postgres/assets/test_postgres.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/tests/unit/postgres/dialects/__init__.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/tests/unit/postgres/dialects/test_postgres.py +0 -0
- {apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/tests/unit/postgres/hooks/__init__.py +0 -0
{apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apache-airflow-providers-postgres
|
|
3
|
-
Version: 6.2.
|
|
3
|
+
Version: 6.2.3
|
|
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>
|
|
@@ -31,8 +31,8 @@ Requires-Dist: pandas>=2.1.2 ; extra == "pandas" and ( python_version <"3.13")
|
|
|
31
31
|
Requires-Dist: pandas>=2.2.3 ; extra == "pandas" and ( python_version >="3.13")
|
|
32
32
|
Requires-Dist: polars>=1.26.0 ; extra == "polars"
|
|
33
33
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
|
34
|
-
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.
|
|
35
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.
|
|
34
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.3/changelog.html
|
|
35
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.3
|
|
36
36
|
Project-URL: Mastodon, https://fosstodon.org/@airflow
|
|
37
37
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
|
38
38
|
Project-URL: Source Code, https://github.com/apache/airflow
|
|
@@ -67,7 +67,7 @@ Provides-Extra: polars
|
|
|
67
67
|
|
|
68
68
|
Package ``apache-airflow-providers-postgres``
|
|
69
69
|
|
|
70
|
-
Release: ``6.2.
|
|
70
|
+
Release: ``6.2.3``
|
|
71
71
|
|
|
72
72
|
Release Date: ``|PypiReleaseDate|``
|
|
73
73
|
|
|
@@ -81,7 +81,7 @@ This is a provider package for ``postgres`` provider. All classes for this provi
|
|
|
81
81
|
are in ``airflow.providers.postgres`` python package.
|
|
82
82
|
|
|
83
83
|
You can find package information and changelog for the provider
|
|
84
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.
|
|
84
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.3/>`_.
|
|
85
85
|
|
|
86
86
|
Installation
|
|
87
87
|
------------
|
|
@@ -127,5 +127,5 @@ Dependent package
|
|
|
127
127
|
============================================================================================================== ===============
|
|
128
128
|
|
|
129
129
|
The changelog for the provider package can be found in the
|
|
130
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.
|
|
130
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.3/changelog.html>`_.
|
|
131
131
|
|
{apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/README.rst
RENAMED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
Package ``apache-airflow-providers-postgres``
|
|
25
25
|
|
|
26
|
-
Release: ``6.2.
|
|
26
|
+
Release: ``6.2.3``
|
|
27
27
|
|
|
28
28
|
Release Date: ``|PypiReleaseDate|``
|
|
29
29
|
|
|
@@ -37,7 +37,7 @@ This is a provider package for ``postgres`` provider. All classes for this provi
|
|
|
37
37
|
are in ``airflow.providers.postgres`` python package.
|
|
38
38
|
|
|
39
39
|
You can find package information and changelog for the provider
|
|
40
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.
|
|
40
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.3/>`_.
|
|
41
41
|
|
|
42
42
|
Installation
|
|
43
43
|
------------
|
|
@@ -83,4 +83,4 @@ Dependent package
|
|
|
83
83
|
============================================================================================================== ===============
|
|
84
84
|
|
|
85
85
|
The changelog for the provider package can be found in the
|
|
86
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.
|
|
86
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.3/changelog.html>`_.
|
|
@@ -27,6 +27,17 @@
|
|
|
27
27
|
Changelog
|
|
28
28
|
---------
|
|
29
29
|
|
|
30
|
+
6.2.3
|
|
31
|
+
.....
|
|
32
|
+
|
|
33
|
+
Bug Fixes
|
|
34
|
+
~~~~~~~~~
|
|
35
|
+
|
|
36
|
+
* ``Fix the PostgresHook ignoring custom adapters registered (#53707)``
|
|
37
|
+
|
|
38
|
+
.. Below changes are excluded from the changelog. Move them to
|
|
39
|
+
appropriate section above if needed. Do not delete the lines(!):
|
|
40
|
+
|
|
30
41
|
6.2.2
|
|
31
42
|
.....
|
|
32
43
|
|
{apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/docs/index.rst
RENAMED
|
@@ -77,7 +77,7 @@ apache-airflow-providers-postgres package
|
|
|
77
77
|
`PostgreSQL <https://www.postgresql.org/>`__
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
Release: 6.2.
|
|
80
|
+
Release: 6.2.3
|
|
81
81
|
|
|
82
82
|
Release Date: ``|PypiReleaseDate|``
|
|
83
83
|
|
|
@@ -136,5 +136,5 @@ Downloading official packages
|
|
|
136
136
|
You can download officially released packages and verify their checksums and signatures from the
|
|
137
137
|
`Official Apache Download site <https://downloads.apache.org/airflow/providers/>`_
|
|
138
138
|
|
|
139
|
-
* `The apache-airflow-providers-postgres 6.2.
|
|
140
|
-
* `The apache-airflow-providers-postgres 6.2.
|
|
139
|
+
* `The apache-airflow-providers-postgres 6.2.3 sdist package <https://downloads.apache.org/airflow/providers/apache_airflow_providers_postgres-6.2.3.tar.gz>`_ (`asc <https://downloads.apache.org/airflow/providers/apache_airflow_providers_postgres-6.2.3.tar.gz.asc>`__, `sha512 <https://downloads.apache.org/airflow/providers/apache_airflow_providers_postgres-6.2.3.tar.gz.sha512>`__)
|
|
140
|
+
* `The apache-airflow-providers-postgres 6.2.3 wheel package <https://downloads.apache.org/airflow/providers/apache_airflow_providers_postgres-6.2.3-py3-none-any.whl>`_ (`asc <https://downloads.apache.org/airflow/providers/apache_airflow_providers_postgres-6.2.3-py3-none-any.whl.asc>`__, `sha512 <https://downloads.apache.org/airflow/providers/apache_airflow_providers_postgres-6.2.3-py3-none-any.whl.sha512>`__)
|
{apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/provider.yaml
RENAMED
|
@@ -22,12 +22,13 @@ description: |
|
|
|
22
22
|
`PostgreSQL <https://www.postgresql.org/>`__
|
|
23
23
|
|
|
24
24
|
state: ready
|
|
25
|
-
source-date-epoch:
|
|
25
|
+
source-date-epoch: 1754503423
|
|
26
26
|
# Note that those versions are maintained by release manager - do not update them manually
|
|
27
27
|
# with the exception of case where other provider in sources has >= new provider version.
|
|
28
28
|
# In such case adding >= NEW_VERSION and bumping to NEW_VERSION in a provider have
|
|
29
29
|
# to be done in the same PR
|
|
30
30
|
versions:
|
|
31
|
+
- 6.2.3
|
|
31
32
|
- 6.2.2
|
|
32
33
|
- 6.2.1
|
|
33
34
|
- 6.2.0
|
{apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/pyproject.toml
RENAMED
|
@@ -25,7 +25,7 @@ build-backend = "flit_core.buildapi"
|
|
|
25
25
|
|
|
26
26
|
[project]
|
|
27
27
|
name = "apache-airflow-providers-postgres"
|
|
28
|
-
version = "6.2.
|
|
28
|
+
version = "6.2.3"
|
|
29
29
|
description = "Provider package apache-airflow-providers-postgres for Apache Airflow"
|
|
30
30
|
readme = "README.rst"
|
|
31
31
|
authors = [
|
|
@@ -120,8 +120,8 @@ apache-airflow-providers-common-sql = {workspace = true}
|
|
|
120
120
|
apache-airflow-providers-standard = {workspace = true}
|
|
121
121
|
|
|
122
122
|
[project.urls]
|
|
123
|
-
"Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.
|
|
124
|
-
"Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.
|
|
123
|
+
"Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.3"
|
|
124
|
+
"Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.3/changelog.html"
|
|
125
125
|
"Bug Tracker" = "https://github.com/apache/airflow/issues"
|
|
126
126
|
"Source Code" = "https://github.com/apache/airflow"
|
|
127
127
|
"Slack Chat" = "https://s.apache.org/airflow-slack"
|
|
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
|
|
|
29
29
|
|
|
30
30
|
__all__ = ["__version__"]
|
|
31
31
|
|
|
32
|
-
__version__ = "6.2.
|
|
32
|
+
__version__ = "6.2.3"
|
|
33
33
|
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
|
35
35
|
"2.10.0"
|
|
@@ -26,7 +26,7 @@ from typing import TYPE_CHECKING, Any, Literal, TypeAlias, cast, overload
|
|
|
26
26
|
import psycopg2
|
|
27
27
|
import psycopg2.extensions
|
|
28
28
|
import psycopg2.extras
|
|
29
|
-
from psycopg2.extras import DictCursor,
|
|
29
|
+
from psycopg2.extras import DictCursor, NamedTupleCursor, RealDictCursor
|
|
30
30
|
from sqlalchemy.engine import URL
|
|
31
31
|
|
|
32
32
|
from airflow.exceptions import (
|
|
@@ -282,20 +282,19 @@ class PostgresHook(DbApiHook):
|
|
|
282
282
|
"""
|
|
283
283
|
Serialize a cell.
|
|
284
284
|
|
|
285
|
-
|
|
286
|
-
|
|
285
|
+
Psycopg2 adapts all arguments to the ``execute()`` method internally,
|
|
286
|
+
hence we return the cell without any conversion.
|
|
287
287
|
|
|
288
|
-
|
|
288
|
+
See https://www.psycopg.org/docs/extensions.html#sql-adaptation-protocol-objects
|
|
289
|
+
for more information.
|
|
289
290
|
|
|
290
|
-
|
|
291
|
-
|
|
291
|
+
To perform custom type adaptation please use register_adapter function
|
|
292
|
+
https://www.psycopg.org/docs/extensions.html#psycopg2.extensions.register_adapter.
|
|
292
293
|
|
|
293
294
|
:param cell: The cell to insert into the table
|
|
294
295
|
:param conn: The database connection
|
|
295
296
|
:return: The cell
|
|
296
297
|
"""
|
|
297
|
-
if isinstance(cell, (dict, list)):
|
|
298
|
-
cell = Json(cell)
|
|
299
298
|
return cell
|
|
300
299
|
|
|
301
300
|
def get_iam_token(self, conn: Connection) -> tuple[str, str, int]:
|
|
@@ -27,7 +27,6 @@ import polars as pl
|
|
|
27
27
|
import psycopg2.extras
|
|
28
28
|
import pytest
|
|
29
29
|
import sqlalchemy
|
|
30
|
-
from psycopg2.extras import Json
|
|
31
30
|
|
|
32
31
|
from airflow.exceptions import AirflowException
|
|
33
32
|
from airflow.models import Connection
|
|
@@ -503,24 +502,6 @@ class TestPostgresHook:
|
|
|
503
502
|
|
|
504
503
|
assert sorted(input_data) == sorted(results)
|
|
505
504
|
|
|
506
|
-
@pytest.mark.parametrize(
|
|
507
|
-
"raw_cell, expected_serialized",
|
|
508
|
-
[
|
|
509
|
-
("cell content", "cell content"),
|
|
510
|
-
(342, 342),
|
|
511
|
-
(
|
|
512
|
-
{"key1": "value2", "n_key": {"sub_key": "sub_value"}},
|
|
513
|
-
{"key1": "value2", "n_key": {"sub_key": "sub_value"}},
|
|
514
|
-
),
|
|
515
|
-
([1, 2, {"key1": "value2"}, "some data"], [1, 2, {"key1": "value2"}, "some data"]),
|
|
516
|
-
],
|
|
517
|
-
)
|
|
518
|
-
def test_serialize_cell(self, raw_cell, expected_serialized):
|
|
519
|
-
if isinstance(raw_cell, Json):
|
|
520
|
-
assert expected_serialized == raw_cell.adapted
|
|
521
|
-
else:
|
|
522
|
-
assert expected_serialized == raw_cell
|
|
523
|
-
|
|
524
505
|
@pytest.mark.parametrize(
|
|
525
506
|
"df_type, expected_type",
|
|
526
507
|
[
|
|
File without changes
|
{apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/docs/commits.rst
RENAMED
|
File without changes
|
{apache_airflow_providers_postgres-6.2.2 → apache_airflow_providers_postgres-6.2.3}/docs/conf.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|