Package io.openlineage.client
Class OpenLineage.TestExecution
java.lang.Object
io.openlineage.client.OpenLineage.TestExecution
- Enclosing class:
- OpenLineage
model class for TestExecution
-
Method Details
-
getName
- Returns:
- Name identifying the test.
-
getStatus
- Returns:
- Whether the test found issues: 'pass' (no issues found), 'fail' (issues found), 'skip' (not executed). Independent of severity — a test can fail without blocking the pipeline when severity is 'warn'.
-
getSeverity
- Returns:
- The configured consequence of a test failure: 'error' (blocks pipeline execution) or 'warn' (produces a warning only, does not block). A test with severity 'warn' and status 'fail' means issues were found but execution continued.
-
getType
- Returns:
- Classification of the test, e.g. 'not_null', 'unique', 'row_count', 'freshness', 'custom_sql'.
-
getDescription
- Returns:
- Human-readable description of what the test checks.
-
getExpected
- Returns:
- The expected value or threshold for the test, serialized as a string.
-
getActual
- Returns:
- The actual value observed during the test, serialized as a string.
-
getContent
- Returns:
- The test body, e.g. a SQL query or expression.
-
getContentType
- Returns:
- The format of the content field, allowing consumers to interpret or filter test content. Common values include 'sql', 'json', 'expression'.
-
getParams
- Returns:
- Arbitrary key-value pairs for check-specific inputs.
-
equals
-
hashCode
public int hashCode()
-