awslabs / python-deequ

Python API for Deequ
Apache License 2.0
669 stars 131 forks source link

fix: add assertion and hints for isContainedIn and hasPattern #157

Closed chenliu0831 closed 9 months ago

chenliu0831 commented 9 months ago

Issue #, if available: https://github.com/awslabs/python-deequ/issues/142

Description of changes:

FIx #142. The constraint suggested comes Deequ and the isContainedIn method did not support assertion and hint parameters. This PR adds it back.

In addition, we add theis_one check function and set it as default for hasPattern and isContainedIn function. This is consistent with the Deequ's default value for assertion, see https://github.com/awslabs/deequ/blob/d3dbe2d77563fdbe0acaadcf55bd84e5f688027f/src/main/scala/com/amazon/deequ/checks/Check.scala#L1084.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.