in data_validation/data_validation.py [0:0]
def execute(self):
"""Execute Queries and Store Results"""
# Apply random row filter before validations run
if self.config_manager.use_random_rows():
util.timed_call("Random row filter", self._add_random_row_filter)
# Run correct execution for the given validation type
if self.config_manager.validation_type == consts.ROW_VALIDATION:
grouped_fields = self.validation_builder.pop_grouped_fields()
result_df = self.execute_recursive_validation(
self.validation_builder, grouped_fields
)
elif self.config_manager.validation_type == consts.SCHEMA_VALIDATION:
"""Perform only schema validation"""
result_df = util.timed_call(
"Schema validation", self.schema_validator.execute
)
else:
result_df = self._execute_validation(self.validation_builder)
# Call Result Handler to Manage Results
return self.result_handler.execute(result_df)