Skip to content

Commit fdb1bf6

Browse files
committed
update check quality notebook
1 parent 79304c3 commit fdb1bf6

1 file changed

Lines changed: 4 additions & 32 deletions

File tree

knowledge_base/pydabs_job_conditional_execution/src/check_quality.ipynb

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,10 @@
1111
},
1212
"outputs": [],
1313
"source": [
14-
"bad_records_count = 150"
15-
]
16-
},
17-
{
18-
"cell_type": "code",
19-
"execution_count": null,
20-
"id": "97594830",
21-
"metadata": {
22-
"vscode": {
23-
"languageId": "plaintext"
24-
}
25-
},
26-
"outputs": [],
27-
"source": [
28-
"dbutils.jobs.taskValues.set(\n",
29-
" key='bad_records',\n",
30-
" value=bad_records_count\n",
31-
")"
32-
]
33-
},
34-
{
35-
"cell_type": "code",
36-
"execution_count": null,
37-
"id": "f48c4bc8",
38-
"metadata": {
39-
"vscode": {
40-
"languageId": "plaintext"
41-
}
42-
},
43-
"outputs": [],
44-
"source": [
45-
"print(f\"Found {bad_records_count} bad records\")"
14+
"from databricks.sdk.runtime import dbutils\n",
15+
"\n",
16+
"bad_records = 123 # result of a data quality check\n",
17+
"dbutils.jobs.taskValues.set(key=\"bad_records\", value=bad_records)"
4618
]
4719
}
4820
],

0 commit comments

Comments
 (0)