[Bug]: vacuum fails with `Error performing bulk delete request`
bugbinding/ruststorage/azure
### What happened?
In a Fabric python notebook when I `%pip install polars[deltalake]==1.38.1` it grabs polars 1.38.1 but the latest deltalake version. The following code was working fine while the latest deltalake version was deltalake==1.5.0 but when 1.5.1 came out the `vacuum` line started failing.
```python
target_path = f"abfss://{lakehouse_workspace_id}@onelake.dfs.fabric.microsoft.com/{lakehouse_id}/Tables/{target_schema}/{table_name}"
df.write_delta(
target=target_path,
mode="overwrite",
delta_write_options={"schema_mode": "overwrite"},
storage_options=storage_options
)
deltalake.DeltaTable(target_path).vacuum(dry_run=False)
```
Error received on the vacuum function is:
```
OSError
Generic MicrosoftAzure error [31m↳[0m Error performing bulk delete request [31m↳[0m Error performing POST https://onelake.blob.fabric.microsoft.com/<my lakehouse_workspace_id here>?restype=container&comp=batch in 4.508425ms - Server returned non-2xx status code [31m↳[0m 400 Bad Request [31m↳[0m {"error":{"code":"BadRequest","message":"Either WorkspaceId or ArtifactId are missing in the request"}}
```
As a workaround I changed the pip command to `%pip install polars[deltalake]==1.38.1 deltalake==1.5.0 arro3-core==0.8.0` to stick on 1.5.0 until this is resolved or another workaround is identified.
### Expected behavior
1.5.1 should not cause this failure. Or there should be some config which lets me restore the old behavior or fix the underlying problem.
### Operating System
Linux
### Binding
Python
### Bindings Version
1.5.1
### Steps to reproduce
See above
### Relevant logs
```shell
See error above
```
3 条评论