Skip to content

WasbHook get_file method requires length and offset #28260

@ghost

Description

Apache Airflow version

2.5.0

What happened

Prior to Azure provider 5.0.0, WasbHook.get_file only required three arguments (file_path, container_name, and blob_name), but now two additional parameters - length and offset - are required by the underlying WasbHook.download method. However the underlying BlobClient.download_blob method has length and offset as optional.

What you think should happen instead

length and offset should continue to be optional in WasbHook.download (and therefore WasbHook.get_file).

How to reproduce

Call WasbHook.get_file with only the initial three arguments (file_path, container_name, and blob_name).

Operating System

Debian Slim

Versions of Apache Airflow Providers

apache-airflow-providers-microsoft-azure==5.0.0

Deployment

Astronomer

Deployment details

No response

Anything else

Just wanted to say I really love your issue submission form.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions