-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sc-23356] modify readme for optional output field (#768)
- Loading branch information
1 parent
94dccd3
commit 1cf8fa1
Showing
40 changed files
with
193 additions
and
222 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
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
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
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
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
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
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 |
---|---|---|
|
@@ -45,14 +45,15 @@ datasets: | |
... | ||
... | ||
... | ||
output: | ||
file: | ||
directory: <output_directory> | ||
``` | ||
|
||
> Note: You only need to specify `account` if the platform is `SNOWFLAKE`. | ||
See [Output Config](../../common/docs/output.md) for more information on `output`. | ||
### Optional Configurations | ||
|
||
#### Output Destination | ||
|
||
See [Output Config](../common/docs/output.md) for more information. | ||
|
||
### Examples | ||
|
||
|
@@ -68,9 +69,6 @@ datasets: | |
email: [email protected] | ||
- type: | ||
email: [email protected] | ||
output: | ||
file: | ||
directory: /output | ||
``` | ||
Here's another example showing how to tag a Snowflake table as `golden`, and the `email` column as `pii`. | ||
|
@@ -87,9 +85,6 @@ datasets: | |
- column: email | ||
tags: | ||
- pii | ||
output: | ||
file: | ||
directory: /output | ||
``` | ||
|
||
The following example shows how to add a description to a Redshift table. | ||
|
@@ -102,16 +97,13 @@ datasets: | |
descriptions: | ||
- description: A fancy description for the table | ||
email: [email protected] | ||
output: | ||
file: | ||
directory: /output | ||
``` | ||
|
||
## Testing | ||
|
||
Follow the [Installation](../../README.md) instructions to install `metaphor-connectors` in your environment (or virtualenv). | ||
|
||
To test the connector locally, change the config file to output to a local path and run the following command | ||
Run the following command to test the connector locally: | ||
|
||
```shell | ||
metaphor custom.governance <config_file> | ||
|
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
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
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 |
---|---|---|
|
@@ -19,12 +19,13 @@ attributions: | |
<query_id>: <user_email> | ||
... | ||
... | ||
output: | ||
file: | ||
directory: <output_directory> | ||
``` | ||
|
||
See [Output Config](../../common/docs/output.md) for more information on `output`. | ||
### Optional Configurations | ||
|
||
#### Output Destination | ||
|
||
See [Output Config](../common/docs/output.md) for more information. | ||
|
||
### Examples | ||
|
||
|
@@ -36,16 +37,13 @@ attributions: | |
queries: | ||
query_id_1: [email protected] | ||
query_id_2: [email protected] | ||
output: | ||
file: | ||
directory: /output | ||
``` | ||
## Testing | ||
Follow the [Installation](../../README.md) instructions to install `metaphor-connectors` in your environment (or virtualenv). | ||
|
||
To test the connector locally, change the config file to output to a local path and run the following command | ||
Run the following command to test the connector locally: | ||
|
||
```shell | ||
metaphor custom.query_attributions <config_file> | ||
|
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
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
Oops, something went wrong.