ITADN

[Bug]: vacuum fails with `Error performing bulk delete request`

#4401Openfurmangg 创建于 2026-04-22
bugbinding/ruststorage/azure
F
furmanggcommented
### 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 ↳ Error performing bulk delete request ↳ 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 ↳ 400 Bad Request ↳ {"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 条评论