dq_check_duplicates
Checks whether key columns uniquely identify rows and distinguishes exact duplicate records from conflicting duplicates with the same key but different values.
Instructions
Check whether key_columns are unique, and diagnose what kind of duplication it is.
Separates exact duplicate rows (the same record loaded twice: a re-run or overlapping incremental window) from conflicting duplicates (same key, different values: wrong grain or a join fan-out).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table": "<table>",
"key_columns": "<key_columns>"
},
"name": "dq_check_duplicates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name from dq_list_sources, e.g. 'orders' or 'warehouse.main.orders'. | |
| sample | No | ||
| key_columns | Yes | Columns that should uniquely identify a row, e.g. ['order_id']. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||