Skip to content

Commit 003f250

Browse files
committed
Fix table as well
1 parent 269437b commit 003f250

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdv/multi_table/hma.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def _print_estimate_warning(self):
271271
entry.append(table)
272272
entry.append(sum(metadata_columns[table]))
273273
total_est_cols += est_cols
274-
entry.append(est_cols)
274+
entry.append(min(est_cols, PERFORMANCE_ALERT_DISPLAY_CAP))
275275
print_table.append(entry)
276276

277277
if total_est_cols > MAX_NUMBER_OF_COLUMNS:

tests/unit/multi_table/test_hma.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def test__print_estimate_warning_many_cols(self, get_distributions_mock, estimat
148148
'PerformanceAlert: Using the HMASynthesizer on this metadata schema is not recommended.'
149149
' To model this data, HMA will generate a large number of columns. (1000000+ columns)\n'
150150
'\n\nTable Name # Columns in Metadata Est # Columns\n'
151-
' nesreca 1 1000010\n\n'
151+
' nesreca 1 1000000\n\n'
152152
"We recommend simplifying your metadata schema using 'sdv.utils.poc.simplify_schema'."
153153
'\nIf this is not possible, please visit datacebo.com and reach out to us for '
154154
'enterprise solutions.\n\n'

0 commit comments

Comments
 (0)