Skip to content

Commit

Permalink
Feature snowpark test (#136)
Browse files Browse the repository at this point in the history
* Formated and refactored

* Added creds for snowpark tests

* Docs on control
  • Loading branch information
canimus authored Dec 29, 2023
1 parent 6d7dcb2 commit 296ffd5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,14 @@ Check | Description | DataType
`satisfies` | An open `SQL expression` builder to construct custom checks | _agnostic_
`validate` | The ultimate transformation of a check with a `dataframe` input for validation | _agnostic_


## Controls

Check | Description | DataType
------- | ----------- | ----
`completeness` | Zero `nulls` | _agnostic_


## ISO Standard
A new module has been incorporated in `cuallee==0.4.0` which allows the verification of International Standard Organization columns in data frames. Simply access the `check.iso` interface to add the set of checks as shown below.

Expand Down
2 changes: 1 addition & 1 deletion cuallee/snowpark_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ def summary(check: Check, dataframe: DataFrame) -> DataFrame:
F.when(pass_rate >= pass_threshold, F.lit("PASS")).otherwise(F.lit("FAIL"))
)

# Create SnowparkSession
# Create SnowparkSession using account info
SNOWFLAKE_ENVIRONMENT = {
"account": "SF_ACCOUNT",
"user": "SF_USER",
Expand Down

0 comments on commit 296ffd5

Please sign in to comment.