Skip to content

Commit 077c71d

Browse files
37 migrate to create streaming table api from create streaming live table (#39)
1 parent 4139c7f commit 077c71d

31 files changed

+251
-41
lines changed

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ omit =
66
*/site-packages/*
77
tests/*
88
src/install.py
9+
src/uninstall.py
910
src/config.py
1011
src/cli.py
1112

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"expect_or_drop": {
3+
"valid_customer_id": "customer_id IS NOT NULL"
4+
}
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"expect_or_drop": {
3+
"valid_product_id": "product_id IS NOT NULL"
4+
}
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"expect_or_drop": {
3+
"valid_store_id": "store_id IS NOT NULL"
4+
}
5+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"expect_or_drop": {
3+
"valid_transaction_id": "transaction_id IS NOT NULL",
4+
"valid_customer_id": "customer_id IS NOT NULL"
5+
}
6+
}

demo/conf/onboarding.template

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
"_rescued_data"
3939
]
4040
},
41-
"silver_transformation_json_prod": "{dbfs_path}/demo/conf/silver_transformations.json"
41+
"silver_transformation_json_prod": "{dbfs_path}/demo/conf/silver_transformations.json",
42+
"silver_data_quality_expectations_json_prod": "{dbfs_path}/demo/conf/dqe/customers_silver_dqe.json"
43+
4244
},
4345
{
4446
"data_flow_id": "101",
@@ -80,7 +82,8 @@
8082
]
8183
},
8284
"silver_table_path_prod": "{dbfs_path}/demo/resources/data/silver/transactions",
83-
"silver_transformation_json_prod": "{dbfs_path}/demo/conf/silver_transformations.json"
85+
"silver_transformation_json_prod": "{dbfs_path}/demo/conf/silver_transformations.json",
86+
"silver_data_quality_expectations_json_prod": "{dbfs_path}/demo/conf/dqe/transactions_silver_dqe.json"
8487
},
8588
{
8689
"data_flow_id": "103",
@@ -123,7 +126,8 @@
123126
]
124127
},
125128
"silver_table_path_prod": "{dbfs_path}/demo/resources/data/silver/products",
126-
"silver_transformation_json_prod": "{dbfs_path}/demo/conf/silver_transformations.json"
129+
"silver_transformation_json_prod": "{dbfs_path}/demo/conf/silver_transformations.json",
130+
"silver_data_quality_expectations_json_prod": "{dbfs_path}/demo/conf/dqe/products_silver_dqe.json"
127131
},
128132
{
129133
"data_flow_id": "104",
@@ -166,6 +170,7 @@
166170
]
167171
},
168172
"silver_table_path_prod": "{dbfs_path}/demo/resources/data/silver/stores",
169-
"silver_transformation_json_prod": "{dbfs_path}/demo/conf/silver_transformations.json"
173+
"silver_transformation_json_prod": "{dbfs_path}/demo/conf/silver_transformations.json",
174+
"silver_data_quality_expectations_json_prod": "{dbfs_path}/demo/conf/dqe/stores_silver_dqe.json"
170175
}
171176
]
72 Bytes
Binary file not shown.

demo/launch_techsummit_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def create_techsummit_demo_workflow(self, runner_conf: TechsummitRunnerConf):
178178
"""
179179
database, dlt_lib = self.init_db_dltlib(runner_conf)
180180
return self.ws.jobs.create(
181-
name=f"dlt-meta-dais-demo-{runner_conf.run_id}",
181+
name=f"dlt-meta-techsummit-demo-{runner_conf.run_id}",
182182
tasks=[
183183
jobs.Task(
184184
task_key="generate_data",

docs/content/getting_started/metadatapreperation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ draft: false
3838
| silver_table_path_{env} | Silver table storage path. |
3939
| silver_table_properties | DLT table properties map. e.g. `{"pipelines.autoOptimize.managed": "false" , "pipelines.autoOptimize.zOrderCols": "year,month", "pipelines.reset.allowed": "false"}` |
4040
| silver_transformation_json | Silver table sql transformation json path |
41-
41+
| silver_data_quality_expectations_json_{env} | Silver table data quality expectations json file path
4242

4343
### Data Quality Rules File Structure
4444
| Field | Description |
4545
| :-----------: | :----------- |
4646
| expect | Specify multiple data quality sql for each field when records that fail validation should be included in the target dataset|
4747
| expect_or_fail | Specify multiple data quality sql for each field when records that fail validation should halt pipeline execution |
4848
| expect_or_drop | Specify multiple data quality sql for each field when records that fail validation should be dropped from the target dataset |
49-
| expect_or_quarantine | Specify multiple data quality sql for each field when records that fails validation will be dropped from main table and inserted into quarantine table specified in dataflowspec |
49+
| expect_or_quarantine | Specify multiple data quality sql for each field when records that fails validation will be dropped from main table and inserted into quarantine table specified in dataflowspec (only applicable for Bronze layer) |
5050

5151
### Silver transformation File Structure
5252
| Field | Description |

integration_tests/conf/cloudfiles-onboarding.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
"silver_table_properties": {
4949
"pipelines.reset.allowed": "false",
5050
"pipelines.autoOptimize.zOrderCols": "id, email"
51-
}
51+
},
52+
"silver_data_quality_expectations_json_it": "{dbfs_path}/integration_tests/conf/dqe/customers/silver_data_quality_expectations.json"
5253
},
5354
{
5455
"data_flow_id": "101",
@@ -98,6 +99,7 @@
9899
},
99100
"silver_table_path_it": "{dbfs_path}/data/silver/transactions",
100101
"silver_transformation_json_it": "{dbfs_path}/integration_tests/conf/silver_transformations.json",
102+
"silver_data_quality_expectations_json_it": "{dbfs_path}/integration_tests/conf/dqe/transactions/silver_data_quality_expectations.json",
101103
"silver_table_properties": {
102104
"pipelines.reset.allowed": "false",
103105
"pipelines.autoOptimize.zOrderCols": "id, customer_id"

0 commit comments

Comments
 (0)