Migrate ADLSListOperator from ADLS Gen1 to Gen2 (#44228) #61188
+28
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closes: #44228
Why
The older
ADLSListOperatorusesAzureDataLakeHook, which uses Gen 1 SDK is already retired.airflow/providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/data_lake.py
Line 133 in 44d3678
How
Replace it with
AzureDataLakeStorageV2Hook, which uses Gen 2 SDK.Given Gen1 is retired, the impact should be limited, but this is a breaking change.
What
I created an object (blob) in an Azure Storage account.
And I used this DAG to test whether I could fetch it.
It works pretty well.

Discussion
It seems
AzureDataLakeHookuses the Gen 1 SDK. Perhaps we need to add@deprecated(...)to it?airflow/providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/data_lake.py
Line 46 in 44d3678
Was generative AI tooling used to co-author this PR?
Claude Opus 4.5
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.