Skip to content

Commit 69a18d0

Browse files
committed
add default max size for columns missing this key
1 parent 385ac03 commit 69a18d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schematic/store/synapse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,7 @@ def make_synapse_table(self,
14371437

14381438
if col in table_schema_by_cname:
14391439
col_type = table_schema_by_cname[col]['columnType']
1440-
max_size = table_schema_by_cname[col]['maximumSize']
1440+
max_size = table_schema_by_cname[col]['maximumSize'] if 'maximumSize' in table_schema_by_cname[col].keys() else 100
14411441
max_list_len = 250
14421442
if max_size and max_list_len:
14431443
cols.append(Column(name=col, columnType=col_type,
@@ -1487,7 +1487,7 @@ def make_synapse_table(self,
14871487
for col in table_to_load.columns:
14881488
if col in table_schema_by_cname:
14891489
col_type = table_schema_by_cname[col]['columnType']
1490-
max_size = table_schema_by_cname[col]['maximumSize']
1490+
max_size = table_schema_by_cname[col]['maximumSize'] if 'maximumSize' in table_schema_by_cname[col].keys() else 100
14911491
max_list_len = 250
14921492
if max_size and max_list_len:
14931493
cols.append(Column(name=col, columnType=col_type,

0 commit comments

Comments
 (0)