forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
53 lines
6.7 KiB
HTML
53 lines
6.7 KiB
HTML
<a name="EN-US_TOPIC_0000001813439080"></a><a name="EN-US_TOPIC_0000001813439080"></a>
|
|
|
|
<h1 class="topictitle1">Basic Functions of DataCheck</h1>
|
|
<div id="body0000001772977386"><div class="section" id="EN-US_TOPIC_0000001813439080__section11011520105915"><h4 class="sectiontitle">Basic Functions</h4><ul id="EN-US_TOPIC_0000001813439080__ul2656554718"><li id="EN-US_TOPIC_0000001813439080__li16510554718">Support data check for source databases such as GaussDB(DWS), MySQL, and PostgreSQL, with the destination database being GaussDB(DWS).</li><li id="EN-US_TOPIC_0000001813439080__li1614011571077">Check common fields, such as numeric, time, and character types.</li><li id="EN-US_TOPIC_0000001813439080__li69881958072">Support three check levels, including high, middle, and low.</li><li id="EN-US_TOPIC_0000001813439080__li108879387817">Check schemas, table names, and column names.</li><li id="EN-US_TOPIC_0000001813439080__li139201540386">Specify the check scope of records. By default, all records are checked.</li><li id="EN-US_TOPIC_0000001813439080__li1481015424815">Support various check methods, including <strong id="EN-US_TOPIC_0000001813439080__b13897194220286">COUNT(*)</strong>, <strong id="EN-US_TOPIC_0000001813439080__b4897174211283">MAX</strong>, <strong id="EN-US_TOPIC_0000001813439080__b15897194262811">MIN</strong>, <strong id="EN-US_TOPIC_0000001813439080__b19898114217285">SUM</strong>, <strong id="EN-US_TOPIC_0000001813439080__b1289815429282">AVG</strong>, and sampling details check.</li><li id="EN-US_TOPIC_0000001813439080__li0612344188">Output the check result and related check details.</li></ul>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001813439080__table108684487713" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Data check levels</caption><thead align="left"><tr id="EN-US_TOPIC_0000001813439080__row13868154818715"><th align="left" class="cellrowborder" valign="top" width="25.75%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001813439080__p1868148678"><strong id="EN-US_TOPIC_0000001813439080__b10451942297">Check Level</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.37%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001813439080__p128680483718"><strong id="EN-US_TOPIC_0000001813439080__b483418792919">Description</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.88%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001813439080__p1277910570421"><strong id="EN-US_TOPIC_0000001813439080__b13869108293">Syntax</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001813439080__row11131155422510"><td class="cellrowborder" valign="top" width="25.75%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001813439080__p2131115472515">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.37%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001813439080__p16132145418258">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001813439080__p2132195420258">-</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001813439080__row1586820481875"><td class="cellrowborder" valign="top" width="25.75%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001813439080__p5103201310434">Low</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.37%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001813439080__p26511291110">Quantity check</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001813439080__p1837143110119">Number of records: <strong id="EN-US_TOPIC_0000001813439080__b96601243122913">COUNT(*)</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001813439080__row5868194812712"><td class="cellrowborder" valign="top" width="25.75%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001813439080__p58681848275">Middle</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.37%" headers="mcps1.3.2.2.4.1.2 "><ul id="EN-US_TOPIC_0000001813439080__ul185743360580"><li id="EN-US_TOPIC_0000001813439080__li185742036125813">Quantity check</li><li id="EN-US_TOPIC_0000001813439080__li1157413365582">Numeric type check</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.88%" headers="mcps1.3.2.2.4.1.3 "><ul id="EN-US_TOPIC_0000001813439080__ul1224020502192"><li id="EN-US_TOPIC_0000001813439080__li4240185010192">Number of records: <strong id="EN-US_TOPIC_0000001813439080__b105911123415">COUNT(*)</strong></li><li id="EN-US_TOPIC_0000001813439080__li102402507190">Value check: <strong id="EN-US_TOPIC_0000001813439080__b177521415133414">MAX</strong>, <strong id="EN-US_TOPIC_0000001813439080__b2015893983714">MIN</strong>, <strong id="EN-US_TOPIC_0000001813439080__b1075134112372">SUM</strong>, and <strong id="EN-US_TOPIC_0000001813439080__b067084220378">AVG</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001813439080__row18681948478"><td class="cellrowborder" valign="top" width="25.75%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001813439080__p118683486718">High</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.37%" headers="mcps1.3.2.2.4.1.2 "><ul id="EN-US_TOPIC_0000001813439080__ul16166483560"><li id="EN-US_TOPIC_0000001813439080__li416114810565">Quantity check</li><li id="EN-US_TOPIC_0000001813439080__li1163919616577">Numeric type check</li><li id="EN-US_TOPIC_0000001813439080__li0924141585712">Date type check</li><li id="EN-US_TOPIC_0000001813439080__li11593172120577">Character type check</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.88%" headers="mcps1.3.2.2.4.1.3 "><ul id="EN-US_TOPIC_0000001813439080__ul1683719316206"><li id="EN-US_TOPIC_0000001813439080__li128374372013">Number of records: <strong id="EN-US_TOPIC_0000001813439080__b935380184812">COUNT(*)</strong></li><li id="EN-US_TOPIC_0000001813439080__li188371312014">Value check: <strong id="EN-US_TOPIC_0000001813439080__b5454324482">MAX</strong>, <strong id="EN-US_TOPIC_0000001813439080__b20454220482">MIN</strong>, <strong id="EN-US_TOPIC_0000001813439080__b1445422114817">SUM</strong>, and <strong id="EN-US_TOPIC_0000001813439080__b145462204816">AVG</strong></li><li id="EN-US_TOPIC_0000001813439080__li138379319201">Date check: <strong id="EN-US_TOPIC_0000001813439080__b367181204813">MAX</strong>, <strong id="EN-US_TOPIC_0000001813439080__b2101161410487">MIN</strong></li><li id="EN-US_TOPIC_0000001813439080__li383711316200">Character check: <strong id="EN-US_TOPIC_0000001813439080__b42681141115413">order by limit 1000</strong>, which reads the data and checks whether the content is the same.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_07_0200.html">DataCheck</a></div>
|
|
</div>
|
|
</div>
|
|
|