doc-exports/docs/dws/dev/dws_04_0703.html
Lu, Huayi a24ca60074 DWS DEVELOPER 811 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-01-19 13:37:49 +00:00

186 lines
18 KiB
HTML

<a name="EN-US_TOPIC_0000001098974908"></a><a name="EN-US_TOPIC_0000001098974908"></a>
<h1 class="topictitle1">GS_WLM_OPERATOR_STATISTICS</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p8060118"><strong id="EN-US_TOPIC_0000001098974908__b842352706222926">GS_WLM_OPERATOR_STATISTICS</strong> displays the operators of the jobs that are being executed by the current user.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001098974908__tf1a716e87ca6430baa99c3fd40179ec4"></a><a name="tf1a716e87ca6430baa99c3fd40179ec4"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001098974908__tf1a716e87ca6430baa99c3fd40179ec4" frame="border" border="1" rules="all"><caption><b>Table 1 </b>GS_WLM_OPERATOR_STATISTICS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001098974908__r349760fe9e364a55ab20675e5ab3f997"><th align="left" class="cellrowborder" valign="top" width="21.782178217821784%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001098974908__a0714ad1c989b4f92a0afc5b2397c6c84">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18.81188118811881%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001098974908__a9350b719ae524e3fa0feb8680ad8578b">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="59.4059405940594%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001098974908__a695efcbbf5784c26b2e8bce567794ad3">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001098974908__rcf362fc05e824f47adf94205860b3039"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__a36824c369ae045a0a1534533698fc61c">queryid</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__aad5ce0d6533b46f3a1941ca0619c6d27">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__ae8ba8207e4b240a0a77daa7cf2ce5b44">Internal query_id used for statement execution</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__rb2591f556b4d4829a76a600f2a2fb0b5"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__abf91e585f12a4988a028587abb20156c">pid</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__a55c538881a154149aea8e7e78d7bd21b">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p651921410511">ID of the backend thread</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r1d188ffe4d5948babcedfe125b09d6f7"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__a1a9516e12d1c446ea3a4e4918a63a375">plan_node_id</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__afa40c4282bc541739bb5d281317641b1">integer</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__a3ff2707775dd4253891aeb4e387d1ddb">plan_node_id of the execution plan of a query</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r50c92bcfdff54adcb363f12fe9fc96eb"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__aeee670ca384645ffa6c9c33a4d90cb74">plan_node_name</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__a60b97b2288724f509025abb0c30809bb">text</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__a94e42ee170824a2fa019312107ff560f">Name of the operator corresponding to plan_node_id</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r6e184f79d0ac41a3824747f11fd36a36"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__a921186ee29234981a740e732cce48e18">start_time</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__a62c8c4d87a9e4831bf819b198cbed49d">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p751971405113">Time when an operator starts to process the first data record</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__rcabc648c82624da88d933e326460f6da"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__a91f154622c3547efa6b0cb06a1e23c12">duration</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__a165dc550ffca4393b362e373c80a4ebe">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__a6b67e2dd542f4893881034fec5f8606b">Total execution time of an operator. The unit is ms.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__rb97182cc7d51465094b3f0a897d1f592"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p14171438299">status</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p8417938495">text</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__a259fbcb27f484de0a063d25349bde6f7">Execution status of the current operator. Its value can be <strong id="EN-US_TOPIC_0000001098974908__b842352706223011">finished</strong> or <strong id="EN-US_TOPIC_0000001098974908__b842352706223016">running</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__rc3d1c36311914976a9d7717453e3098d"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__a0932c454c2f74fd1ad549fd743dd4c47">query_dop</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__a347a6f0329f54d27a43477d0160036e7">integer</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__a0c108e6d52b4404e8fb07c34f71e01ad">DOP of the current operator</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r3a6a67086add458c9dcf21ee863bedea"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__a2db4da5729ce43bc9d9c50cbc1078884">estimated_rows</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__a1f497df0128741459e7b19ca7c300f04">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__a813cb2c5e03943a886004504efdfa894">Number of rows estimated by the optimizer</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r9008085e4aa34ef2827adc5c1a061c44"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__a89d1691094774f6f92cea0636d80b296">tuple_processed</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__ac1bb86a228194e35935dc2bb2ea4e556">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p55195145519">Number of elements returned by the current operator</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r9829800abe334c71a65720a4e3a749ea"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p45193142511">min_peak_memory</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__aef85b2123caa46089acf38a8f9b6b66f">integer</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__ae3d56fcabb994e55bddebd45ca864022">Minimum peak memory used by the current operator on all DNs. The unit is MB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r50aac9f0d6ab46bdad0c3beff0e9191d"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__a9e1267154cd044ab9185a698ed79bdbf">max_peak_memory</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__ad9cbf71b2a2c406f89f95e8ee915efb8">integer</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__aa5ac0918a50d4052b7ecadc04ee5daa4">Maximum peak memory used by the current operator on all DNs. The unit is MB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r5b7cd28f03d34c8396cab435f2c91e89"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__a70213fa003d94cc8a302f1f8a34f0067">average_peak_memory</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__afddd24993e1c48a3a765357eaf2e71ec">integer</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__a6b81d92bc92640179d8d3ac02f096c4f">Average peak memory used by the current operator on all DNs. The unit is MB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r2d17ea5c008d4959ad84775ba4546ea8"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p162135421546">memory_skew_percent</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p02131442948">integer</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__a1aa6f98165d0469eb488607311eda43a">Memory usage skew of the current operator among DNs</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r6bee6c41823b4d19906b6763c5c234c7"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__a70d5a35b31d34c4db772096c9267696c">min_spill_size</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p952021419512">integer</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176227_p752071475115">Minimum spilled data among all DNs when a spill occurs. The unit is MB. The default value is <strong id="EN-US_TOPIC_0000001098974908__b11409353769510">0</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r85155bc919a74c1abceb1a502c0db342"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__afee67e60105a463aa83c0ef0c5fe8683">max_spill_size</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__aac5edb8ffa364890872e19933d63edff">integer</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__a116d664db7be4affa6dbf8ca1d6273d8">Maximum spilled data among all DNs when a spill occurs. The unit is MB. The default value is <strong id="EN-US_TOPIC_0000001098974908__b18242063879510">0</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r74d084528cb6499a91cf6f6c3b050806"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__aa0fa037050f04206b1d6c078aedf41bf">average_spill_size</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p752061414517">integer</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__a942f96de512e43a98957ff5ed9f9aa56">Average spilled data among all DNs when a spill occurs. The unit is MB. The default value is <strong id="EN-US_TOPIC_0000001098974908__b112355759510">0</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r658d41a066f04e75a74cac43ed4e34b1"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__a83a9212db7a24a53b977308473da2fc6">spill_skew_percent</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p85201141517">integer</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__a078bf5a130684cda8ef2733e0510c203">DN spill skew when a spill occurs</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r8bf949d9d12f4df19b95a0772a3fd52f"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__a2856e67b05f9401cb7b4dd75d2d01690">min_cpu_time</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p145200142510">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p185204140516">Minimum execution time of the operator on all DNs. The unit is ms.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r342ee23d4acb473db31215af62a5e990"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p752019149519">max_cpu_time</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__aa7f06f48f7d54fcd88a6ccc4d388015b">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__en-us_topic_0111176228_p65207145515">Maximum execution time of the operator on all DNs. The unit is ms.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__rdcaee8fb1f3a4ce192e4bbf3d1e0f602"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__a75d36ee2bd8e46bf89e3955e1a353222">total_cpu_time</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__aafa29eb26c9144dc8ee9643e27f5daed">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__a0de0af2beb6b42038dbcf2a981c423ed">Total execution time of the operator on all DNs. The unit is ms.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__rfc70947299684368b83606771615bc9c"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__a843f8a7abf3445fc8e0986d027cfc67b">cpu_skew_percent</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__a449f2242e03049728c75135ac7f8be8e">integer</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__a66cbbb4cccab45e39520f36ee1ea2331">Skew of the execution time among DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974908__r222f25ee62dd4fabb27e8414a9a6d371"><td class="cellrowborder" valign="top" width="21.782178217821784%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974908__a3ab1b2128f584ffb9415211e9eeb911a">warning</p>
</td>
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974908__ab469b8b32ef54eb58d39adf553110667">text</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974908__ab51089fef58f4581a671a0b5c937e954">Warning. The following warnings are displayed:</p>
<ol id="EN-US_TOPIC_0000001098974908__ol53971657155"><li id="EN-US_TOPIC_0000001098974908__li1339620511514">Sort/SetOp/HashAgg/HashJoin spill</li><li id="EN-US_TOPIC_0000001098974908__li19396135181519">Spill file size large than 256MB</li><li id="EN-US_TOPIC_0000001098974908__li11396658153">Broadcast size large than 100MB</li><li id="EN-US_TOPIC_0000001098974908__li143962055157">Early spill</li><li id="EN-US_TOPIC_0000001098974908__li133970512153">Spill times is greater than 3</li><li id="EN-US_TOPIC_0000001098974908__li13977510158">Spill on memory adaptive</li><li id="EN-US_TOPIC_0000001098974908__li939717551514">Hash table conflict</li></ol>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0639.html">System Views</a></div>
</div>
</div>