Skip to content

Commit

Permalink
Make UnexpectedRowsExpectation a concrete class
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-hoffman committed Aug 19, 2024
1 parent f5a6480 commit 0861218
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

# <snippet name="docs/docusaurus/docs/snippets/unexpected_row_expectation.py define_custom_expectation">
class UnexpectedTripDistance(UnexpectedRowsExpectation):
unexpected_rows_query = """
unexpected_rows_query: str = """
SELECT
vendor_id, pickup_datetime
FROM
Expand Down
2 changes: 1 addition & 1 deletion great_expectations/expectations/expectation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1613,7 +1613,7 @@ def _validate_metric_value_between( # noqa: C901, PLR0912
return {"success": success, "result": {"observed_value": metric_value}}


class UnexpectedRowsExpectation(BatchExpectation, ABC):
class UnexpectedRowsExpectation(BatchExpectation):
"""
UnexpectedRowsExpectations facilitate the execution of SQL or Spark-SQL queries as the core logic for an Expectation.
Expand Down

0 comments on commit 0861218

Please sign in to comment.