Skip to content

Commit

Permalink
Remove LocalToAzureDataLakeStorageOperator class (#34035)
Browse files Browse the repository at this point in the history
  • Loading branch information
eladkal committed Sep 2, 2023
1 parent b7f84e9 commit ae67a14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
3 changes: 3 additions & 0 deletions airflow/providers/microsoft/azure/CHANGELOG.rst
Expand Up @@ -50,6 +50,9 @@ Breaking changes
* Remove AzureFileShareHook.check_for_file method
* Remove AzureFileShareHook.load_string, AzureFileShareHook.load_stream in favor of AzureFileShareHook.load_data

.. note::
``LocalToAzureDataLakeStorageOperator`` class has been removed in favor of ``LocalFilesystemToADLSOperator``

6.3.0
.....

Expand Down
22 changes: 1 addition & 21 deletions airflow/providers/microsoft/azure/transfers/local_to_adls.py
Expand Up @@ -16,10 +16,9 @@
# under the License.
from __future__ import annotations

import warnings
from typing import TYPE_CHECKING, Any, Sequence

from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
from airflow.exceptions import AirflowException
from airflow.models import BaseOperator
from airflow.providers.microsoft.azure.hooks.data_lake import AzureDataLakeHook

Expand Down Expand Up @@ -97,22 +96,3 @@ def execute(self, context: Context) -> None:
blocksize=self.blocksize,
**self.extra_upload_options,
)


class LocalToAzureDataLakeStorageOperator(LocalFilesystemToADLSOperator):
"""
This class is deprecated.
Please use
:class:`airflow.providers.microsoft.azure.transfers.local_to_adls.LocalFilesystemToADLSOperator`.
"""

def __init__(self, *args, **kwargs):
warnings.warn(
"""This class is deprecated.
Please use
`airflow.providers.microsoft.azure.transfers.local_to_adls.LocalFilesystemToADLSOperator`.""",
AirflowProviderDeprecationWarning,
stacklevel=3,
)
super().__init__(*args, **kwargs)

0 comments on commit ae67a14

Please sign in to comment.