databricks-sdk-py icon indicating copy to clipboard operation
databricks-sdk-py copied to clipboard

[ISSUE] ObjectInfo.size is always None

Open K1T3K1 opened this issue 3 months ago • 0 comments

Description when using WorkspaceClient().workspace.list() all files size parameter is always None

Reproduction

ws_client = WorkspaceClient()
files = ws_client.workspace.list()
for file in files:
  if file.object_type == ObjectType.FILE:
    print(file.size)

Expected behavior Files and Notebooks should have their size returned Is it a regression? I backtracked to 0.45 and couldn't get a proper response from the sdk

Other Information

  • OS: databricks ide
  • Version: tested on every few versions betwwen 0.45.0 to 0.67.0

K1T3K1 avatar Sep 25 '25 14:09 K1T3K1