Class OpenLineage.TestExecution

java.lang.Object
io.openlineage.client.OpenLineage.TestExecution
Enclosing class:
OpenLineage

public static final class OpenLineage.TestExecution extends Object
model class for TestExecution
  • Method Details

    • getName

      public String getName()
      Returns:
      Name identifying the test.
    • getStatus

      public String 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

      public String 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

      public String getType()
      Returns:
      Classification of the test, e.g. 'not_null', 'unique', 'row_count', 'freshness', 'custom_sql'.
    • getDescription

      public String getDescription()
      Returns:
      Human-readable description of what the test checks.
    • getExpected

      public String getExpected()
      Returns:
      The expected value or threshold for the test, serialized as a string.
    • getActual

      public String getActual()
      Returns:
      The actual value observed during the test, serialized as a string.
    • getContent

      public String getContent()
      Returns:
      The test body, e.g. a SQL query or expression.
    • getContentType

      public String getContentType()
      Returns:
      The format of the content field, allowing consumers to interpret or filter test content. Common values include 'sql', 'json', 'expression'.
    • getParams

      public OpenLineage.TestExecutionParams getParams()
      Returns:
      Arbitrary key-value pairs for check-specific inputs.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object