apache-airflow-providers-postgres 6.2.2rc1__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.
Files changed (39) hide show
  1. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/PKG-INFO +9 -9
  2. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/README.rst +3 -3
  3. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/docs/changelog.rst +11 -0
  4. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/docs/index.rst +3 -3
  5. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/provider.yaml +2 -1
  6. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/pyproject.toml +6 -6
  7. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/__init__.py +1 -1
  8. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/hooks/postgres.py +7 -8
  9. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/tests/unit/postgres/hooks/test_postgres.py +0 -19
  10. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/docs/.latest-doc-only-change.txt +0 -0
  11. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/docs/commits.rst +0 -0
  12. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/docs/conf.py +0 -0
  13. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/docs/connections/postgres.rst +0 -0
  14. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/docs/dialects.rst +0 -0
  15. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/docs/installing-providers-from-sources.rst +0 -0
  16. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/docs/integration-logos/Postgres.png +0 -0
  17. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/docs/operators.rst +0 -0
  18. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/docs/redirects.txt +0 -0
  19. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/docs/security.rst +0 -0
  20. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/src/airflow/__init__.py +0 -0
  21. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/__init__.py +0 -0
  22. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/LICENSE +0 -0
  23. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/assets/__init__.py +0 -0
  24. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/assets/postgres.py +0 -0
  25. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/dialects/__init__.py +0 -0
  26. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/dialects/postgres.py +0 -0
  27. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/get_provider_info.py +0 -0
  28. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/src/airflow/providers/postgres/hooks/__init__.py +0 -0
  29. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/tests/conftest.py +0 -0
  30. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/tests/system/__init__.py +0 -0
  31. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/tests/system/postgres/__init__.py +0 -0
  32. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/tests/system/postgres/example_postgres.py +0 -0
  33. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/tests/unit/__init__.py +0 -0
  34. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/tests/unit/postgres/__init__.py +0 -0
  35. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/tests/unit/postgres/assets/__init__.py +0 -0
  36. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/tests/unit/postgres/assets/test_postgres.py +0 -0
  37. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/tests/unit/postgres/dialects/__init__.py +0 -0
  38. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/tests/unit/postgres/dialects/test_postgres.py +0 -0
  39. {apache_airflow_providers_postgres-6.2.2rc1 → apache_airflow_providers_postgres-6.2.3}/tests/unit/postgres/hooks/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apache-airflow-providers-postgres
3
- Version: 6.2.2rc1
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>
@@ -20,19 +20,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
- Requires-Dist: apache-airflow>=2.10.0rc1
24
- Requires-Dist: apache-airflow-providers-common-sql>=1.23.0rc1
23
+ Requires-Dist: apache-airflow>=2.10.0
24
+ Requires-Dist: apache-airflow-providers-common-sql>=1.23.0
25
25
  Requires-Dist: psycopg2-binary>=2.9.9; python_version < '3.13'
26
26
  Requires-Dist: psycopg2-binary>=2.9.10; python_version >= '3.13'
27
27
  Requires-Dist: asyncpg>=0.30.0
28
- Requires-Dist: apache-airflow-providers-amazon>=2.6.0rc1 ; extra == "amazon"
28
+ Requires-Dist: apache-airflow-providers-amazon>=2.6.0 ; extra == "amazon"
29
29
  Requires-Dist: apache-airflow-providers-openlineage ; extra == "openlineage"
30
30
  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.staged.apache.org/docs/apache-airflow-providers-postgres/6.2.2/changelog.html
35
- Project-URL: Documentation, https://airflow.staged.apache.org/docs/apache-airflow-providers-postgres/6.2.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.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.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.2/changelog.html>`_.
130
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.3/changelog.html>`_.
131
131
 
@@ -23,7 +23,7 @@
23
23
 
24
24
  Package ``apache-airflow-providers-postgres``
25
25
 
26
- Release: ``6.2.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.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.2/changelog.html>`_.
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
 
@@ -77,7 +77,7 @@ apache-airflow-providers-postgres package
77
77
  `PostgreSQL <https://www.postgresql.org/>`__
78
78
 
79
79
 
80
- Release: 6.2.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.2 sdist package <https://downloads.apache.org/airflow/providers/apache_airflow_providers_postgres-6.2.2.tar.gz>`_ (`asc <https://downloads.apache.org/airflow/providers/apache_airflow_providers_postgres-6.2.2.tar.gz.asc>`__, `sha512 <https://downloads.apache.org/airflow/providers/apache_airflow_providers_postgres-6.2.2.tar.gz.sha512>`__)
140
- * `The apache-airflow-providers-postgres 6.2.2 wheel package <https://downloads.apache.org/airflow/providers/apache_airflow_providers_postgres-6.2.2-py3-none-any.whl>`_ (`asc <https://downloads.apache.org/airflow/providers/apache_airflow_providers_postgres-6.2.2-py3-none-any.whl.asc>`__, `sha512 <https://downloads.apache.org/airflow/providers/apache_airflow_providers_postgres-6.2.2-py3-none-any.whl.sha512>`__)
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>`__)
@@ -22,12 +22,13 @@ description: |
22
22
  `PostgreSQL <https://www.postgresql.org/>`__
23
23
 
24
24
  state: ready
25
- source-date-epoch: 1753691797
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
@@ -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.2rc1"
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 = [
@@ -57,8 +57,8 @@ requires-python = ">=3.10"
57
57
  # Make sure to run ``breeze static-checks --type update-providers-dependencies --all-files``
58
58
  # After you modify the dependencies, and rebuild your Breeze CI image with ``breeze ci-image build``
59
59
  dependencies = [
60
- "apache-airflow>=2.10.0rc1",
61
- "apache-airflow-providers-common-sql>=1.23.0rc1",
60
+ "apache-airflow>=2.10.0",
61
+ "apache-airflow-providers-common-sql>=1.23.0",
62
62
  "psycopg2-binary>=2.9.9; python_version < '3.13'",
63
63
  "psycopg2-binary>=2.9.10; python_version >= '3.13'",
64
64
  "asyncpg>=0.30.0",
@@ -68,7 +68,7 @@ dependencies = [
68
68
  # Any change in the dependencies is preserved when the file is regenerated
69
69
  [project.optional-dependencies]
70
70
  "amazon" = [
71
- "apache-airflow-providers-amazon>=2.6.0rc1",
71
+ "apache-airflow-providers-amazon>=2.6.0",
72
72
  ]
73
73
  "openlineage" = [
74
74
  "apache-airflow-providers-openlineage"
@@ -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.staged.apache.org/docs/apache-airflow-providers-postgres/6.2.2"
124
- "Changelog" = "https://airflow.staged.apache.org/docs/apache-airflow-providers-postgres/6.2.2/changelog.html"
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.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, Json, NamedTupleCursor, RealDictCursor
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
- In order to pass a Python object to the database as query argument you can use the
286
- Json (class psycopg2.extras.Json) adapter.
285
+ Psycopg2 adapts all arguments to the ``execute()`` method internally,
286
+ hence we return the cell without any conversion.
287
287
 
288
- Reading from the database, json and jsonb values will be automatically converted to Python objects.
288
+ See https://www.psycopg.org/docs/extensions.html#sql-adaptation-protocol-objects
289
+ for more information.
289
290
 
290
- See https://www.psycopg.org/docs/extras.html#json-adaptation for
291
- more information.
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
  [