row = {'duration': 4.0610480308532715, 'dj_user': 'edeno', 'origin': '`decoding_clusterless_v1`.`clusterless_decoding_selection`', 'restriction': '[\'(`position_group_name`="test_group") AND (`nwb_file_name`="j1620210710_.nwb") AND (`waveform_features_group_name`="test_group") AND (`estimate_decoding_params`=True) AND (`encoding_interval`="06_r3 noPrePostTrialTimes") AND (`decoding_param_name`="j1620', 'merge_deletes': {}}
def _log_use(self, start, merge_deletes=None):
365 """Log use of cautious_delete."""
--> 366 self._usage_table.insert1(
367 dict(
368 duration=time() - start,
369 dj_user=dj.config["database.user"],
370 origin=self.full_table_name,
371 restriction=(
372 str(self.restriction)[:255] if self.restriction else "None"
373 ),
374 merge_deletes=merge_deletes,
375 )
376 )
DataError: (1406, "Data too long for column 'restriction' at row 1")
restriction evalutes to:
'[\'(`position_group_name`="test_group") AND (`nwb_file_name`="j1620210710_.nwb") AND (`waveform_features_group_name`="test_group") AND (`estimate_decoding_params`=True) AND (`encoding_interval`="06_r3 noPrePostTrialTimes") AND (`decoding_param_name`="j1620'
Describe the bug
restriction evalutes to: