Skip to content

Commit e2d3744

Browse files
committed
Merge branch 'm-kovalsky/disableDLreadstatsfromdata'
2 parents be1e6d2 + ea834be commit e2d3744

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/sempy_labs/_list_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def list_tables(
240240
"Columns": sum(
241241
1 for c in t.Columns if str(c.Type) != "RowNumber"
242242
),
243-
"% DB": round((total_size / model_size) * 100, 2),
243+
"% DB": round((total_size / model_size) * 100, 2) if model_size not in (0, None, float('nan')) else 0.0,
244244
}
245245
)
246246

src/sempy_labs/_vertipaq.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import warnings
99
from sempy_labs._helper_functions import (
1010
format_dax_object_name,
11-
resolve_lakehouse_name,
1211
save_as_delta_table,
1312
resolve_workspace_capacity,
1413
_get_column_aggregate,
@@ -20,7 +19,6 @@
2019
)
2120
from sempy_labs._list_functions import list_relationships, list_tables
2221
from sempy_labs.lakehouse import lakehouse_attached, get_lakehouse_tables
23-
from sempy_labs.directlake import get_direct_lake_source
2422
from typing import Optional
2523
from sempy._utils._log import log
2624
import sempy_labs._icons as icons
@@ -176,10 +174,12 @@ def vertipaq_analyzer(
176174
)
177175

178176
artifact_type = None
179-
if is_direct_lake:
180-
artifact_type, lakehouse_name, lakehouse_id, lakehouse_workspace_id = (
181-
get_direct_lake_source(dataset=dataset_id, workspace=workspace_id)
182-
)
177+
lakehouse_workspace_id = None
178+
lakehouse_name = None
179+
# if is_direct_lake:
180+
# artifact_type, lakehouse_name, lakehouse_id, lakehouse_workspace_id = (
181+
# get_direct_lake_source(dataset=dataset_id, workspace=workspace_id)
182+
# )
183183

184184
dfR["Missing Rows"] = 0
185185
dfR["Missing Rows"] = dfR["Missing Rows"].astype(int)

0 commit comments

Comments
 (0)