-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Comment out __all__ * Formatting * Modify README.md a bit * Modify README.md some more * Move parts to Readme-other.md * Modify README.md some more * Modify README.md some more * Modify README.md some more --------- Co-authored-by: bas <[email protected]>
- Loading branch information
Showing
6 changed files
with
53 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Export the schema from Unity Catalog to the Input Form | ||
In order to output the schema from Unity Catalog, use the following commands (using the required schema name): | ||
|
||
``` | ||
schema_output = dq_suite.schema_to_json_string('schema_name', spark) | ||
print(schema_output) | ||
``` | ||
|
||
Copy the string to the Input Form to quickly ingest the schema in Excel. | ||
|
||
|
||
# Validate the schema of a table | ||
It is possible to validate the schema of an entire table to a schema definition from Amsterdam Schema in one go. This is done by adding two fields to the "dq_rules" JSON when describing the table (See: https://github.com/Amsterdam/dq-suite-amsterdam/blob/main/dq_rules_example.json). | ||
|
||
You will need: | ||
- validate_table_schema: the id field of the table from Amsterdam Schema | ||
- validate_table_schema_url: the url of the table or dataset from Amsterdam Schema | ||
|
||
The schema definition is converted into column level expectations (expect_column_values_to_be_of_type) on run time. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
"""DQ API.""" | ||
|
||
from .common import ValidationSettings | ||
from .df_checker import run | ||
from .input_helpers import schema_to_json_string | ||
|
||
# Use __all__ to let developers know what is part of the public API. | ||
__all__ = ["schema_to_json_string", "run", "ValidationSettings"] | ||
# from .common import ValidationSettings | ||
# from .df_checker import run | ||
# from .input_helpers import schema_to_json_string | ||
# | ||
# # Use __all__ to let developers know what is part of the public API. | ||
# __all__ = ["schema_to_json_string", "run", "ValidationSettings"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
import pytest | ||
from pyspark.sql import SparkSession | ||
|
||
|