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
Validation error doesn't print row, column and value if value is None.
For instance, for DateType checks which should handle null values, the error printed is as follows:
0,This field should be date type
instead of 0,"{row: 1, column: ""Date_column""}: ""None"" This field should be date type"
This issue is due to ValidationWarning class (in validation_warning.py) which is ignoring None for the value and prints the generic message. Instead of ignoring None for the value, we could change the value to string in order to print the row and column as it should.
Before:
# line 19: ValidationWarning at validation_warning.pyifself.rowisnotNoneandself.columnisnotNoneandself.valueisnotNone:
return'{{row: {}, column: "{}"}}: "{}" {}'.format(self.row, self.column, self.value, self.message)
else:
returnself.message
After:
# line 19: ValidationWarning at validation_warning.pyifself.rowisnotNoneandself.columnisnotNone:
value=self.valueifself.valueisnotNoneelse"None"return'{{row: {}, column: "{}"}}: "{}" {}'.format(self.row, self.column, value, self.message)
else:
returnself.message
The text was updated successfully, but these errors were encountered:
Validation error doesn't print row, column and value if value is None.
For instance, for DateType checks which should handle null values, the error printed is as follows:
0,This field should be date type
instead of
0,"{row: 1, column: ""Date_column""}: ""None"" This field should be date type"
This issue is due to
ValidationWarning
class (invalidation_warning.py
) which is ignoring None for the value and prints the generic message. Instead of ignoring None for the value, we could change the value to string in order to print the row and column as it should.Before:
After:
The text was updated successfully, but these errors were encountered: