Skip to content

Commit 00642a4

Browse files
authored
Fixed name of 20 remaining wrongly named operators. (#8994)
1 parent 9764c90 commit 00642a4

File tree

182 files changed

+806
-302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+806
-302
lines changed

β€ŽBREEZE.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ This is the current syntax for `./breeze <./breeze>`_:
878878
879879
Prepares README.md files for backport packages. You can provide (after --) optional version
880880
in the form of YYYY.MM.DD, optionally followed by the list of packages to generate readme for.
881-
If the first parameter is not formatted as a date, then today is used as version.
881+
If the first parameter is not formatted as a date, then today is regenerated.
882882
If no packages are specified, readme for all packages are generated.
883883
If no date is specified, current date + 3 days is used (allowing for PMC votes to pass).
884884

β€Žairflow/contrib/operators/oracle_to_azure_data_lake_transfer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# pylint: disable=unused-import
2626
from airflow.providers.microsoft.azure.operators.oracle_to_azure_data_lake_transfer import ( # noqa
27-
OracleToAzureDataLakeTransfer,
27+
OracleToAzureDataLakeTransferOperator,
2828
)
2929

3030
warnings.warn(

β€Žairflow/contrib/operators/oracle_to_oracle_transfer.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,25 @@
2020
import warnings
2121

2222
# pylint: disable=unused-import
23-
from airflow.providers.oracle.operators.oracle_to_oracle_transfer import OracleToOracleTransfer # noqa
23+
from airflow.providers.oracle.operators.oracle_to_oracle_transfer import OracleToOracleTransferOperator
2424

2525
warnings.warn(
2626
"This module is deprecated. Please use `airflow.providers.oracle.operators.oracle_to_oracle_transfer`.",
2727
DeprecationWarning, stacklevel=2
2828
)
29+
30+
31+
class OracleToOracleTransfer(OracleToOracleTransferOperator):
32+
"""
33+
This class is deprecated.
34+
Please use:
35+
`airflow.providers.oracle.operators.oracle_to_oracle_transfer.OracleToOracleTransferOperator`."""
36+
37+
def __init__(self, *args, **kwargs):
38+
warnings.warn(
39+
"""This class is deprecated.
40+
Please use
41+
`airflow.providers.oracle.operators.oracle_to_oracle_transfer.OracleToOracleTransferOperator`.""",
42+
DeprecationWarning, stacklevel=2
43+
)
44+
super().__init__(*args, **kwargs)

β€Žairflow/contrib/operators/vertica_to_hive.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,25 @@
1919

2020
import warnings
2121

22-
# pylint: disable=unused-import
23-
from airflow.providers.apache.hive.operators.vertica_to_hive import VerticaToHiveTransfer # noqa
22+
from airflow.providers.apache.hive.operators.vertica_to_hive import VerticaToHiveTransferOperator
2423

2524
warnings.warn(
2625
"This module is deprecated. Please use `airflow.providers.apache.hive.operators.vertica_to_hive`.",
2726
DeprecationWarning, stacklevel=2
2827
)
28+
29+
30+
class VerticaToHiveTransfer(VerticaToHiveTransferOperator):
31+
"""
32+
This class is deprecated.
33+
Please use:
34+
`airflow.providers.apache.hive.operators.vertica_to_hive.VerticaToHiveTransferOperator`."""
35+
36+
def __init__(self, *args, **kwargs):
37+
warnings.warn(
38+
"""This class is deprecated.
39+
Please use
40+
`airflow.providers.apache.hive.operators.vertica_to_hive.VerticaToHiveTransferOperator`.""",
41+
DeprecationWarning, stacklevel=2
42+
)
43+
super().__init__(*args, **kwargs)

β€Žairflow/contrib/operators/vertica_to_mysql.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,25 @@
2020
import warnings
2121

2222
# pylint: disable=unused-import
23-
from airflow.providers.mysql.operators.vertica_to_mysql import VerticaToMySqlTransfer # noqa
23+
from airflow.providers.mysql.operators.vertica_to_mysql import VerticaToMySqlTransferOperator
2424

2525
warnings.warn(
2626
"This module is deprecated. Please use `airflow.providers.mysql.operators.vertica_to_mysql`.",
2727
DeprecationWarning, stacklevel=2
2828
)
29+
30+
31+
class VerticaToMySqlTransfer(VerticaToMySqlTransferOperator):
32+
"""
33+
This class is deprecated.
34+
Please use:
35+
`airflow.providers.mysql.operators.vertica_to_mysql.VerticaToMySqlTransferOperator`."""
36+
37+
def __init__(self, *args, **kwargs):
38+
warnings.warn(
39+
"""This class is deprecated.
40+
Please use
41+
`airflow.providers.mysql.operators.vertica_to_mysql.VerticaToMySqlTransferOperator`.""",
42+
DeprecationWarning, stacklevel=2
43+
)
44+
super().__init__(*args, **kwargs)

β€Žairflow/contrib/sensors/hdfs_sensor.py

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,43 @@
2020
import warnings
2121

2222
# pylint: disable=unused-import
23-
from airflow.providers.apache.hdfs.sensors.hdfs import HdfsSensorFolder, HdfsSensorRegex # noqa
23+
from airflow.providers.apache.hdfs.sensors.hdfs import HdfsFolderSensor, HdfsRegexSensor
2424

2525
warnings.warn(
2626
"This module is deprecated. Please use `airflow.providers.apache.hdfs.sensors.hdfs`.",
2727
DeprecationWarning, stacklevel=2
2828
)
29+
30+
31+
# pylint: disable=too-many-ancestors
32+
class HdfsSensorFolder(HdfsFolderSensor):
33+
"""
34+
This class is deprecated.
35+
Please use:
36+
`airflow.providers.apache.hdfs.sensors.hdfs.HdfsFolderSensor`."""
37+
38+
def __init__(self, *args, **kwargs):
39+
warnings.warn(
40+
"""This class is deprecated.
41+
Please use
42+
`airflow.providers.apache.hdfs.sensors.hdfs.HdfsFolderSensor`.""",
43+
DeprecationWarning, stacklevel=2
44+
)
45+
super().__init__(*args, **kwargs)
46+
47+
48+
# pylint: disable=too-many-ancestors
49+
class HdfsSensorRegex(HdfsRegexSensor):
50+
"""
51+
This class is deprecated.
52+
Please use:
53+
`airflow.providers.apache.hdfs.sensors.hdfs.HdfsRegexSensor`."""
54+
55+
def __init__(self, *args, **kwargs):
56+
warnings.warn(
57+
"""This class is deprecated.
58+
Please use
59+
`airflow.providers.apache.hdfs.sensors.hdfs.HdfsRegexSensor`.""",
60+
DeprecationWarning, stacklevel=2
61+
)
62+
super().__init__(*args, **kwargs)

β€Žairflow/operators/google_api_to_s3_transfer.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,27 @@
2222

2323
import warnings
2424

25-
# pylint: disable=unused-import
26-
from airflow.providers.amazon.aws.operators.google_api_to_s3_transfer import GoogleApiToS3Transfer # noqa
25+
from airflow.providers.amazon.aws.operators.google_api_to_s3_transfer import GoogleApiToS3TransferOperator
2726

2827
warnings.warn(
2928
"This module is deprecated. "
3029
"Please use `airflow.providers.amazon.aws.operators.google_api_to_s3_transfer`.",
3130
DeprecationWarning, stacklevel=2
3231
)
32+
33+
34+
class GoogleApiToS3Transfer(GoogleApiToS3TransferOperator):
35+
"""
36+
This class is deprecated.
37+
Please use:
38+
`airflow.providers.amazon.aws.operators.google_api_to_s3_transfer.GoogleApiToS3TransferOperator`."""
39+
40+
def __init__(self, *args, **kwargs):
41+
warnings.warn(
42+
"""This class is deprecated.
43+
Please use
44+
`airflow.providers.amazon.aws.operators.""" +
45+
"google_api_to_s3_transfer.GoogleApiToS3TransferOperator`.",
46+
DeprecationWarning, stacklevel=2
47+
)
48+
super().__init__(*args, **kwargs)

β€Žairflow/operators/hive_to_druid.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,25 @@
2020
import warnings
2121

2222
# pylint: disable=unused-import
23-
from airflow.providers.apache.druid.operators.hive_to_druid import HiveToDruidTransfer # noqa
23+
from airflow.providers.apache.druid.operators.hive_to_druid import HiveToDruidTransferOperator
2424

2525
warnings.warn(
2626
"This module is deprecated. Please use `airflow.providers.apache.druid.operators.hive_to_druid`.",
2727
DeprecationWarning, stacklevel=2
2828
)
29+
30+
31+
class HiveToDruidTransfer(HiveToDruidTransferOperator):
32+
"""
33+
This class is deprecated.
34+
Please use:
35+
`airflow.providers.apache.druid.operators.hive_to_druid.HiveToDruidTransferOperator`."""
36+
37+
def __init__(self, *args, **kwargs):
38+
warnings.warn(
39+
"""This class is deprecated.
40+
Please use
41+
`airflow.providers.apache.druid.operators.hive_to_druid.HiveToDruidTransferOperator`.""",
42+
DeprecationWarning, stacklevel=2
43+
)
44+
super().__init__(*args, **kwargs)

β€Žairflow/operators/hive_to_mysql.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,25 @@
2020
import warnings
2121

2222
# pylint: disable=unused-import
23-
from airflow.providers.apache.hive.operators.hive_to_mysql import HiveToMySqlTransfer # noqa
23+
from airflow.providers.apache.hive.operators.hive_to_mysql import HiveToMySqlTransferOperator
2424

2525
warnings.warn(
2626
"This module is deprecated. Please use `airflow.providers.apache.hive.operators.hive_to_mysql`.",
2727
DeprecationWarning, stacklevel=2
2828
)
29+
30+
31+
class HiveToMySqlTransfer(HiveToMySqlTransferOperator):
32+
"""
33+
This class is deprecated.
34+
Please use:
35+
`airflow.providers.apache.hive.operators.hive_to_mysql.HiveToMySqlTransferOperator`."""
36+
37+
def __init__(self, *args, **kwargs):
38+
warnings.warn(
39+
"""This class is deprecated.
40+
Please use
41+
`airflow.providers.apache.hive.operators.hive_to_mysql.HiveToMySqlTransferOperator`.""",
42+
DeprecationWarning, stacklevel=2
43+
)
44+
super().__init__(*args, **kwargs)

β€Žairflow/operators/mssql_to_hive.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,25 @@
1919

2020
import warnings
2121

22-
# pylint: disable=unused-import
23-
from airflow.providers.apache.hive.operators.mssql_to_hive import MsSqlToHiveTransfer # noqa
22+
from airflow.providers.apache.hive.operators.mssql_to_hive import MsSqlToHiveTransferOperator
2423

2524
warnings.warn(
2625
"This module is deprecated. Please use `airflow.providers.apache.hive.operators.mssql_to_hive`.",
2726
DeprecationWarning, stacklevel=2
2827
)
28+
29+
30+
class MsSqlToHiveTransfer(MsSqlToHiveTransferOperator):
31+
"""
32+
This class is deprecated.
33+
Please use:
34+
`airflow.providers.apache.hive.operators.mssql_to_hive.MsSqlToHiveTransferOperator`."""
35+
36+
def __init__(self, *args, **kwargs):
37+
warnings.warn(
38+
"""This class is deprecated.
39+
Please use
40+
`airflow.providers.apache.hive.operators.mssql_to_hive.MsSqlToHiveTransferOperator`.""",
41+
DeprecationWarning, stacklevel=2
42+
)
43+
super().__init__(*args, **kwargs)

0 commit comments

Comments
 (0)