You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please indicate the following details about the environment in which you found the bug:
SDV version: Master branch
Python version: Any
Operating System: Any
Error Description
If both constraints and conditions are specified on the same column, the Table.py class is incorrectly adding the same constraint to the _constraints_to_reverse attribute and upon reversing, this causes it to crash.
We should only add constraints to the _constraints_to_reverse attribute, if the is_condition parameter is False. This can be changed here
Sampling conditions: 0%| | 0/2 [00:00<?, ?it/s]
Error: Sampling terminated. Partial results are stored in a temporary file: .sample.csv.temp. This file will be overridden the next time you sample. Please rename the file if you wish to save these results.
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
3360 try:
-> 3361 return self._engine.get_loc(casted_key)
3362 except KeyError as err:
17 frames
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
KeyError: 'low_col#mid_col'
The above exception was the direct cause of the following exception:
KeyError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
3361 return self._engine.get_loc(casted_key)
3362 except KeyError as err:
-> 3363 raise KeyError(key) from err
3364
3365 if is_scalar(key) and isna(key) and not self.hasnans:
KeyError: 'low_col#mid_col'
The text was updated successfully, but these errors were encountered:
Environment Details
Please indicate the following details about the environment in which you found the bug:
Error Description
If both constraints and conditions are specified on the same column, the
Table.py
class is incorrectly adding the same constraint to the_constraints_to_reverse
attribute and upon reversing, this causes it to crash.We should only add constraints to the
_constraints_to_reverse
attribute, if theis_condition
parameter is False. This can be changed hereSDV/sdv/metadata/table.py
Lines 442 to 449 in c68ac3c
Requirements
Steps to reproduce
The text was updated successfully, but these errors were encountered: