apache-airflow-providers-postgres 6.2.2__py3-none-any.whl → 6.2.3rc1__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.

Potentially problematic release.


This version of apache-airflow-providers-postgres might be problematic. Click here for more details.

@@ -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]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apache-airflow-providers-postgres
3
- Version: 6.2.2
3
+ Version: 6.2.3rc1
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.0
24
- Requires-Dist: apache-airflow-providers-common-sql>=1.23.0
23
+ Requires-Dist: apache-airflow>=2.10.0rc1
24
+ Requires-Dist: apache-airflow-providers-common-sql>=1.23.0rc1
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.0 ; extra == "amazon"
28
+ Requires-Dist: apache-airflow-providers-amazon>=2.6.0rc1 ; 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.apache.org/docs/apache-airflow-providers-postgres/6.2.2/changelog.html
35
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-postgres/6.2.2
34
+ Project-URL: Changelog, https://airflow.staged.apache.org/docs/apache-airflow-providers-postgres/6.2.3/changelog.html
35
+ Project-URL: Documentation, https://airflow.staged.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
 
@@ -1,13 +1,13 @@
1
1
  airflow/providers/postgres/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
2
- airflow/providers/postgres/__init__.py,sha256=FlEbneFcch2XA2xgjink0A627hTPgaO-v539Ks-FIFg,1497
2
+ airflow/providers/postgres/__init__.py,sha256=AGf6WOLMkDqDRwtMgRbiZ8xMIXq-l-oK88uqcaOVUsk,1497
3
3
  airflow/providers/postgres/get_provider_info.py,sha256=qEEYbClLY3-NH40dBk2u_nOIfvfEIHdXaWsIJ8J5Z68,2626
4
4
  airflow/providers/postgres/assets/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
5
5
  airflow/providers/postgres/assets/postgres.py,sha256=XNhOJCbOA_soaaiS73JjULMqAM_7PBryhToe8FJREA0,1522
6
6
  airflow/providers/postgres/dialects/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
7
7
  airflow/providers/postgres/dialects/postgres.py,sha256=8ygA2Jq2WBPhNOISU8YyitLmahxWnPGYNt8OaU_CBFI,3764
8
8
  airflow/providers/postgres/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
9
- airflow/providers/postgres/hooks/postgres.py,sha256=M0B0VX4E4U0LZRqVhiqi7GmIH_1oZ0RZGDAhzm9ZvlA,17742
10
- apache_airflow_providers_postgres-6.2.2.dist-info/entry_points.txt,sha256=dhtJi6PTWHd6BwKhmI4OtSPvQVI_p0yYWI0eba83HqY,104
11
- apache_airflow_providers_postgres-6.2.2.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
12
- apache_airflow_providers_postgres-6.2.2.dist-info/METADATA,sha256=7MdKH88JFs5jC9WhZ54QW394Xi4gICI_QhDZpA3nZDU,6238
13
- apache_airflow_providers_postgres-6.2.2.dist-info/RECORD,,
9
+ airflow/providers/postgres/hooks/postgres.py,sha256=_iulx6UoEBcGP2_wxmdoXnYM9I97I4dGGAAkw4mmLTg,17737
10
+ apache_airflow_providers_postgres-6.2.3rc1.dist-info/entry_points.txt,sha256=dhtJi6PTWHd6BwKhmI4OtSPvQVI_p0yYWI0eba83HqY,104
11
+ apache_airflow_providers_postgres-6.2.3rc1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
12
+ apache_airflow_providers_postgres-6.2.3rc1.dist-info/METADATA,sha256=YNhTrvJxeTW0-3ovqYYXUfoky0h7JjnSPWNp8JL3Nhk,6264
13
+ apache_airflow_providers_postgres-6.2.3rc1.dist-info/RECORD,,