Skip to content

Commit

Permalink
Bump common.sql provider to 1.3.1 (#27888)
Browse files Browse the repository at this point in the history
The common.sql provider should be bumped to 1.3.1 in order to handle
some of the problems found in 1.3.0 - mainly about consistency of
common SQLExecuteQueryOperator that is used in multiple providers.

We are going to yank 1.3.0 - this PR also bumps min dependency
for all providers that use common.sql to make sure we can release
them in sync with the common.sql provider.
  • Loading branch information
potiuk committed Nov 24, 2022
1 parent 485142a commit 80c327b
Show file tree
Hide file tree
Showing 27 changed files with 80 additions and 46 deletions.
2 changes: 1 addition & 1 deletion airflow/providers/amazon/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- boto3>=1.24.0
# watchtower 3 has been released end Jan and introduced breaking change across the board that might
# change logging behaviour:
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/apache/drill/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- sqlalchemy-drill>=1.1.0

integrations:
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/apache/druid/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- pydruid>=0.4.1

integrations:
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/apache/hive/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- hmsclient>=0.1.0
- pandas>=0.17.1
- pyhive[hive]>=0.6.0
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/apache/pinot/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- pinotdb>0.4.7

integrations:
Expand Down
20 changes: 20 additions & 0 deletions airflow/providers/common/sql/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,26 @@
Changelog
---------

1.3.1
.....

This release fixes a few errors that were introduced in common.sql operator while refactoring common parts:

* ``_process_output`` method in ``SQLExecuteQueryOperator`` has now consistent semantics and typing, it
can also modify the returned (and stored in XCom) values in the operators that derive from the
``SQLExecuteQueryOperator``).
* last description of the cursor whether to return scalar values are now stored in DBApiHook

Lack of consistency in the operator caused ``1.3.0`` to be yanked - the ``1.3.0`` should not be used - if
you have ``1.3.0`` installed, upgrade to ``1.3.1``.

Bug Fixes
~~~~~~~~~

* ``Restore removed (but used) methods in common.sql (#27843)``
* ``Fix errors in Databricks SQL operator introduced when refactoring (#27854)``


1.3.0
.....

Expand Down
1 change: 1 addition & 0 deletions airflow/providers/common/sql/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ description: |
`Common SQL Provider <https://en.wikipedia.org/wiki/SQL>`__
versions:
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.0
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/databricks/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- requests>=2.27,<3
- databricks-sql-connector>=2.0.0, <3.0.0
- aiohttp>=3.6.3, <4
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/elasticsearch/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- elasticsearch>7
- elasticsearch-dbapi
- elasticsearch-dsl>=5.0.0
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/exasol/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- pyexasol>=0.5.1
- pandas>=0.17.1

Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/google/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
# Google has very clear rules on what dependencies should be used. All the limits below
# follow strict guidelines of Google Libraries as quoted here:
# While this issue is open, dependents of google-api-core, google-cloud-core. and google-auth
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/jdbc/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- jaydebeapi>=1.1.1

integrations:
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/microsoft/mssql/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- pymssql>=2.1.5; platform_machine != "aarch64"

integrations:
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/mysql/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- mysql-connector-python>=8.0.11; platform_machine != "aarch64"
- mysqlclient>=1.3.6; platform_machine != "aarch64"

Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/odbc/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- pyodbc

integrations:
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/oracle/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- oracledb>=1.0.0

integrations:
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/postgres/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- psycopg2>=2.8.0

integrations:
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/presto/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- presto-python-client>=0.8.2
- pandas>=0.17.1

Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/qubole/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- qds-sdk>=1.10.4

integrations:
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/slack/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- slack_sdk>=3.0.0

integrations:
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/snowflake/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- snowflake-connector-python>=2.4.1
- snowflake-sqlalchemy>=1.1.0

Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/sqlite/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ versions:
- 1.0.0

dependencies:
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1

integrations:
- integration-name: SQLite
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/trino/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- pandas>=0.17.1
- trino>=0.318.0

Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/vertica/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ versions:

dependencies:
- apache-airflow>=2.3.0
- apache-airflow-providers-common-sql>=1.3.0
- apache-airflow-providers-common-sql>=1.3.1
- vertica-python>=0.5.1

integrations:
Expand Down
15 changes: 14 additions & 1 deletion docs/apache-airflow-providers-common-sql/commits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,27 @@ For high-level changelog, see :doc:`package information including changelog <ind



1.4.0
.....

Latest change: 2022-11-24

================================================================================================= =========== ==============================================================================
Commit Committed Subject
================================================================================================= =========== ==============================================================================
`ea306c9462 <https://github.com/apache/airflow/commit/ea306c9462615d6b215d43f7f17d68f4c62951b1>`_ 2022-11-24 ``Fix errors in Databricks SQL operator introduced when refactoring (#27854)``
`dbb4b59dcb <https://github.com/apache/airflow/commit/dbb4b59dcbc8b57243d1588d45a4d2717c3e7758>`_ 2022-11-23 ``Restore removed (but used) methods in common.sql (#27843)``
================================================================================================= =========== ==============================================================================

1.3.0
.....

Latest change: 2022-11-14
Latest change: 2022-11-15

================================================================================================= =========== ====================================================================================
Commit Committed Subject
================================================================================================= =========== ====================================================================================
`12c3c39d1a <https://github.com/apache/airflow/commit/12c3c39d1a816c99c626fe4c650e88cf7b1cc1bc>`_ 2022-11-15 ``pRepare docs for November 2022 wave of Providers (#27613)``
`3ae98b824d <https://github.com/apache/airflow/commit/3ae98b824db437b2db928a73ac8b50c0a2f80124>`_ 2022-11-14 ``Use unused SQLCheckOperator.parameters in SQLCheckOperator.execute. (#27599)``
`5c37b503f1 <https://github.com/apache/airflow/commit/5c37b503f118b8ad2585dff9949dd8fdb96689ed>`_ 2022-10-31 ``Use DbApiHook.run for DbApiHook.get_records and DbApiHook.get_first (#26944)``
`9ab1a6a3e7 <https://github.com/apache/airflow/commit/9ab1a6a3e70b32a3cddddf0adede5d2f3f7e29ea>`_ 2022-10-27 ``Update old style typing (#26872)``
Expand Down
2 changes: 1 addition & 1 deletion docs/apache-airflow-providers-common-sql/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Package apache-airflow-providers-common-sql
`Common SQL Provider <https://en.wikipedia.org/wiki/SQL>`__


Release: 1.3.0
Release: 1.4.0

Provider package
----------------
Expand Down

0 comments on commit 80c327b

Please sign in to comment.