Skip to content

Commit

Permalink
Remove Provider Deprecations in MySQL (apache#44665)
Browse files Browse the repository at this point in the history
* Remove Provider Deprecations in MySQL

* Update docs
  • Loading branch information
jscheffl authored and got686-yandex committed Jan 30, 2025
1 parent 5b6ee7b commit ee88352
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 319 deletions.
3 changes: 1 addition & 2 deletions docs/apache-airflow-providers-mysql/operators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ How-to Guide for Mysql using SQLExecuteQueryOperator
Use the :class:`~airflow.providers.common.sql.operators.SQLExecuteQueryOperator` to execute
SQL commands in a `MySql <https://dev.mysql.com/doc/>`__ database.

.. warning::
Previously, MySqlOperator was used to perform this kind of operation. But at the moment MySqlOperator is deprecated and will be removed in future versions of the provider. Please consider to switch to SQLExecuteQueryOperator as soon as possible.
Previously, MySqlOperator was used to perform this kind of operation. But after deprecation it was removed. Please use SQLExecuteQueryOperator instead.

Using the Operator
^^^^^^^^^^^^^^^^^^
Expand Down
14 changes: 14 additions & 0 deletions providers/src/airflow/providers/mysql/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@
Changelog
---------

main
....

Breaking changes
~~~~~~~~~~~~~~~~

.. warning::
All deprecated classes, parameters and features have been removed from the MySQL provider package.
The following breaking changes were introduced:

* Operators
* Remove ``airflow.providers.mysql.operators.mysql.MySqlOperator``. Please use ``airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator``.
Also, you can provide `hook_params={'schema': <database>}`.

5.7.4
.....

Expand Down
17 changes: 0 additions & 17 deletions providers/src/airflow/providers/mysql/operators/__init__.py

This file was deleted.

76 changes: 0 additions & 76 deletions providers/src/airflow/providers/mysql/operators/mysql.py

This file was deleted.

6 changes: 0 additions & 6 deletions providers/src/airflow/providers/mysql/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,6 @@ integrations:
logo: /integration-logos/mysql/MySQL.png
tags: [software]

operators:
- integration-name: MySQL

python-modules:
- airflow.providers.mysql.operators.mysql

hooks:
- integration-name: MySQL
python-modules:
Expand Down
17 changes: 0 additions & 17 deletions providers/tests/mysql/operators/__init__.py

This file was deleted.

201 changes: 0 additions & 201 deletions providers/tests/mysql/operators/test_mysql.py

This file was deleted.

0 comments on commit ee88352

Please sign in to comment.