Open illume opened 1 year ago
Here is an updated procedure to run this and mark its errors in the CMVErrors table! Function's been reviewed with GPT so it should work as intended, but full testing is still pending:
create
definer = azureroot@`%` procedure ValidateHOMUpperAndLowerBounds(IN minHOM decimal(10, 2), IN maxHOM decimal(10, 2))
BEGIN
INSERT INTO forestgeo_bci.cmverrors (CoreMeasurementID, ValidationErrorID)
SELECT
CoreMeasurementID,
3 AS ValidationErrorID
FROM
forestgeo_bci.coremeasurements
WHERE
MeasuredHOM < minHOM OR MeasuredHOM > maxHOM;
END;
See "instructions for writing a validation function". Below are notes from the spec.
Note, this is a new validation without an existing validation function.