Data quality assistant
The Data quality assistant is suited to daily inspection of quality check results, rule running records, and rule coverage. When a check fails, you can locate the problem rules and tables from the scenario workbench and ask the AI assistant to analyze the cause. This topic describes the capabilities, creation method, scenario workbench usage, preset scheduled tasks, and usage notes of the Data quality assistant.
Overview
The Data quality assistant is used to view quality check results, rule running records, rule coverage, and the tables that do not have monitors configured. When a check fails, you can filter running records in the scenario workbench, locate the rules and tables where problems occurred, and let the AI assistant provide cause analysis and rule suggestions.
The question entries in the workbench only generate analysis questions and fill them into a conversation draft; they do not create quality rules directly. The behavior of automatically creating monitors is performed by the preset weekly scheduled task. For the specific scope, see Usage notes.
Create a Data quality assistant
Before you create the assistant, confirm the following items:
-
The execution identity (access to DataWorks) is determined. For personal use, you can select the current logon user. If multiple users share one instance, you can create a RAM role as guided on the page and add the role to the corresponding workspaces.
-
The content of the preset scheduled tasks is confirmed. The weekly DQC quality inspection (automatically create monitors) task includes write operations. Create the instance only after you accept this default behavior.
-
Log on to the DataWorks console, select the target region, and click AI Assistant Service in the left-side navigation pane to go to the AI Assistant Service page.
-
In the Recommended scenarios area, click the Data quality assistant scenario card. In the Scenario description dialog, review the scenario description, preset Skills, preset expert suites, and preset scheduled tasks, and then click Use this scenario.
-
In the Create from scenario window, enter the instance name and description, and select a resource group as required by the page.
-
Select the execution identity (access to DataWorks). The data that the AI assistant can query is subject to the actual permissions of the execution identity.
-
Review the preset Skills, preset expert suites, and preset scheduled tasks listed on the creation page. Scheduled tasks are enabled by default and run on schedule after the instance is created. After you confirm, click Create now.
After creation, the instance may take several minutes to initialize. After initialization is complete, click the instance in the instance list to enter the Scenario workbench.
Preset scheduled tasks
The data quality scenario includes the following preset scheduled tasks, which are enabled by default after the instance is created. Daily times are displayed in Beijing time of the current template.
|
Task |
Execution time |
Main content |
|
Daily quality issue review |
Daily at 09:00 (Beijing time) |
Summarizes, in read-only mode, the quality issues, rules, and involved tables in the current snapshot. |
|
Hourly quality status inspection |
Every hour |
Checks, in read-only mode, the latest available quality status and notes the data update time. |
|
DQC quality inspection (automatically create monitors) |
Mondays at 10:00 (Beijing time) |
Automatically creates quality monitors for tables that lack monitors. This task includes write operations. |
Use the scenario workbench
The default workbench includes the following pages:
|
Page |
Displayed content |
Main purpose |
|
Quality overview |
The tables with monitors configured, enabled tables, checked tables, tables with failed checks, the numbers of passed and failed rules, and the rule running distribution. |
Used to view the quality monitor directory by monitor name or table name, and click a record to open the monitor details. |
|
Quality runs |
The quality check running records. |
Used to filter running records by table name, monitor ID, or status, and open the Run details and Rule check results to analyze failure causes. |
|
Rule coverage |
The MaxCompute tables that currently have no rules configured and the cases where recipients are missing. |
Used to confirm the tables that lack monitors and obtain rule suggestions through Suggest quality rules. |
Common operations
-
After you enter the Scenario workbench of the instance, first select a workspace that you have permissions on, and verify the statistics date and data scope displayed on the page.
-
Question entries such as Suggest quality rules only fill the current object and query scope into a conversation draft. They do not send automatically or create rules directly. Review the draft content before you send it.
Inspect quality status and monitor details
-
On the Quality overview page, view the tables with monitors configured, enabled tables, checked tables, tables with failed checks, the numbers of passed and failed rules, and the rule running distribution.
-
View the quality monitor directory by monitor name or table name, click a record to open the monitor details, and confirm whether the corresponding monitor is enabled.
-
When the tables with failed checks or the number of failed rules increases, go to the Quality runs page to locate the specific running records.
Result: You understand the overall quality status of the current workspace and determine the monitors or running records that need further investigation.
Locate the cause of a failed check
-
On the Quality runs page, filter by table name, monitor ID, or status to narrow the investigation scope.
-
Click the target running record and view the Run details and Rule check results to confirm the rule, table, and data time where the problem occurred.
-
Ask the AI assistant to explain the problem based on the queried tables, rules, and running evidence, confirm the draft content, and then send it. Sample question: "Why did the most recent quality check of project A fail? List the rules, tables, running records, and items to confirm."
-
To add rules, go to the Rule coverage page to view the tables that lack monitors.
Result: The AI assistant explains the failure cause based on the queried tables, rules, and running evidence, and lists the items to confirm.
Add quality rules for tables that lack monitors
-
On the Rule coverage page, view the MaxCompute tables that currently have no rules configured and the cases where recipients are missing.
-
After you confirm that the target table has no rules, select the table and click Suggest quality rules.
-
Review the conversation draft generated by the workbench, confirm it, and then send it.
Result: The AI assistant provides rule suggestions for the selected table. This operation does not create rules directly. Rules are created and configured only after you confirm them.
Usage notes
-
The weekly inspection includes write operations: Within the scope visible to the current execution identity, the DQC quality inspection (automatically create monitors) task creates quality monitors for tables that lack monitors, up to 100 tables per run. If you do not accept this default behavior, do not create an instance of this scenario. After the instance is created, you can disable or adjust the task in the scheduled task management.
-
Distinguish statistics calibers: Some data in quality monitors and running records is aggregated across environments, and the daily statistics of the workbench have a refresh delay. Do not infer recent hourly changes based only on an earlier statistics date. When the statistics date displayed on the page is inconsistent with the alert time, record both times separately.
-
An empty result does not mean a check passed: When the data interface returns nothing or the current identity has no permissions, the workbench displays a prompt. In this case, an empty result should not be interpreted as a passed check.
-
Asking questions and automatic tasks have different impacts: Question operations in the workbench only generate analysis questions and rule suggestions, whereas the preset weekly task automatically creates quality monitors. The two types of operations affect rules differently, so choose based on your needs.