This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
c14ef6d
commit ede6f93
Showing
17 changed files
with
591 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,229 @@ | ||
dataset: | ||
- fides_key: snowflake_example_test_dataset | ||
name: Snowflake Example Test Dataset | ||
description: Example of a Snowflake dataset containing a variety of related tables like customers, products, addresses, etc. | ||
collections: | ||
- name: address | ||
fields: | ||
- name: city | ||
data_categories: [user.provided.identifiable.contact.city] | ||
- name: house | ||
data_categories: [user.provided.identifiable.contact.street] | ||
- name: id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: state | ||
data_categories: [user.provided.identifiable.contact.state] | ||
- name: street | ||
data_categories: [user.provided.identifiable.contact.street] | ||
- name: zip | ||
data_categories: [user.provided.identifiable.contact.postal_code] | ||
|
||
- name: customer | ||
fields: | ||
- name: address_id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
references: | ||
- dataset: snowflake_example_test_dataset | ||
field: address.id | ||
direction: to | ||
- name: created | ||
data_categories: [system.operations] | ||
- name: email | ||
data_categories: [user.provided.identifiable.contact.email] | ||
fidesops_meta: | ||
identity: email | ||
data_type: string | ||
- name: id | ||
data_categories: [user.derived.identifiable.unique_id] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: name | ||
data_categories: [user.provided.identifiable.name] | ||
fidesops_meta: | ||
data_type: string | ||
length: 40 | ||
- name: variant_eg | ||
# We use this data category so we can target this column from | ||
# our Snowflake tests | ||
data_categories: [user.provided.identifiable.name] | ||
|
||
- name: employee | ||
fields: | ||
- name: address_id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
references: | ||
- dataset: snowflake_example_test_dataset | ||
field: address.id | ||
direction: to | ||
- name: email | ||
data_categories: [user.provided.identifiable.contact.email] | ||
fidesops_meta: | ||
identity: email | ||
data_type: string | ||
- name: id | ||
data_categories: [user.derived.identifiable.unique_id] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: name | ||
data_categories: [user.provided.identifiable.name] | ||
fidesops_meta: | ||
data_type: string | ||
|
||
- name: login | ||
fields: | ||
- name: customer_id | ||
data_categories: [user.derived.identifiable.unique_id] | ||
fidesops_meta: | ||
references: | ||
- dataset: snowflake_example_test_dataset | ||
field: customer.id | ||
direction: from | ||
- name: id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: time | ||
data_categories: [user.derived.nonidentifiable.sensor] | ||
|
||
- name: order | ||
fields: | ||
- name: customer_id | ||
data_categories: [user.derived.identifiable.unique_id] | ||
fidesops_meta: | ||
references: | ||
- dataset: snowflake_example_test_dataset | ||
field: customer.id | ||
direction: from | ||
- name: id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: shipping_address_id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
references: | ||
- dataset: snowflake_example_test_dataset | ||
field: address.id | ||
direction: to | ||
|
||
# order_item | ||
- name: order_item | ||
fields: | ||
- name: order_id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
references: | ||
- dataset: snowflake_example_test_dataset | ||
field: order.id | ||
direction: from | ||
- name: product_id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
references: | ||
- dataset: snowflake_example_test_dataset | ||
field: product.id | ||
direction: to | ||
- name: quantity | ||
data_categories: [system.operations] | ||
|
||
- name: payment_card | ||
fields: | ||
- name: billing_address_id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
references: | ||
- dataset: snowflake_example_test_dataset | ||
field: address.id | ||
direction: to | ||
- name: ccn | ||
data_categories: [user.provided.identifiable.financial.account_number] | ||
- name: code | ||
data_categories: [user.provided.identifiable.financial] | ||
- name: customer_id | ||
data_categories: [user.derived.identifiable.unique_id] | ||
fidesops_meta: | ||
references: | ||
- dataset: snowflake_example_test_dataset | ||
field: customer.id | ||
direction: from | ||
- name: id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: name | ||
data_categories: [user.provided.identifiable.financial] | ||
- name: preferred | ||
data_categories: [user.provided.nonidentifiable] | ||
|
||
- name: product | ||
fields: | ||
- name: id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: name | ||
data_categories: [system.operations] | ||
- name: price | ||
data_categories: [system.operations] | ||
|
||
- name: report | ||
fields: | ||
- name: email | ||
data_categories: [user.provided.identifiable.contact.email] | ||
fidesops_meta: | ||
identity: email | ||
data_type: string | ||
- name: id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: month | ||
data_categories: [system.operations] | ||
- name: name | ||
data_categories: [system.operations] | ||
- name: total_visits | ||
data_categories: [system.operations] | ||
- name: year | ||
data_categories: [system.operations] | ||
|
||
- name: service_request | ||
fields: | ||
- name: alt_email | ||
data_categories: [user.provided.identifiable.contact.email] | ||
fidesops_meta: | ||
identity: email | ||
data_type: string | ||
- name: closed | ||
data_categories: [system.operations] | ||
- name: email | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
identity: email | ||
data_type: string | ||
- name: employee_id | ||
data_categories: [user.derived.identifiable.unique_id] | ||
fidesops_meta: | ||
references: | ||
- dataset: snowflake_example_test_dataset | ||
field: employee.id | ||
direction: from | ||
- name: id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: opened | ||
data_categories: [system.operations] | ||
|
||
- name: visit | ||
fields: | ||
- name: email | ||
data_categories: [user.provided.identifiable.contact.email] | ||
fidesops_meta: | ||
identity: email | ||
data_type: string | ||
- name: last_visit | ||
data_categories: [system.operations] |
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
Oops, something went wrong.