Reputation: 11
Azurite provides a local URI - 'http://127.0.0.1/devstoreaccount/{container_name}' to point to a file, but polars doesn't seem to have a way to interact with them. I tried using various 'storage_options' parameters but couldn't actually get it working.
I've tried -
Nothing worked
Upvotes: 1
Views: 78
Reputation: 160
I tried running this code and it worked:
options = {'account_name': "devstoreaccount1", 'azure_storage_use_emulator': 'True'}
pl.read_csv("sample_1000.csv").write_delta("az://ingestion/bronze-partitioned",
delta_write_options={"schema_mode": "overwrite", 'partition_by': ['City']},
mode='overwrite', storage_options=options
)
I am using the following versions of polars and deltalake:
polars==1.20.0
deltalake==0.24.0
However, I had to create the ingestion
container by downloading Storage Explorer and logging into the emulator.
Upvotes: 0