forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
76 lines
8.0 KiB
HTML
76 lines
8.0 KiB
HTML
<a name="mrs_01_1134"></a><a name="mrs_01_1134"></a>
|
|
|
|
<h1 class="topictitle1">Random Value Conversion</h1>
|
|
<div id="body8662426"><div class="section" id="mrs_01_1134__en-us_topic_0000001219029307_s940648d6587f4794b3f3154f0c75d950"><h4 class="sectiontitle">Overview</h4><p id="mrs_01_1134__en-us_topic_0000001219029307_ab12a7d3dfc364425811ec7be4f2dae65"><span class="parmname" id="mrs_01_1134__en-us_topic_0000001219029307_parmname1480712350235"><b>Generate Random</b></span> operator configures new values as random value fields.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1134__en-us_topic_0000001219029307_s6d390477cd174e71a985fe2b87a8b02b"><h4 class="sectiontitle">Input and Output</h4><ul id="mrs_01_1134__en-us_topic_0000001219029307_u7abe6941177a48648cc09cd825124e4f"><li id="mrs_01_1134__en-us_topic_0000001219029307_l387335e42fa646e9b44405bfed6aae5b">Input: none</li><li id="mrs_01_1134__en-us_topic_0000001219029307_l6c3b04b8ea3a415d9a36aac3e9e31874">Output: random value fields</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_01_1134__en-us_topic_0000001219029307_s6721ab21ee1247b390a2c9d261ae1f4c"><h4 class="sectiontitle">Parameter Description</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1134__en-us_topic_0000001219029307_t9f6850c2a81d41e3baf42040fd758e1d" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Operator parameters description</caption><thead align="left"><tr id="mrs_01_1134__en-us_topic_0000001219029307_r5878036c89aa415da2c8e15cb98b19c5"><th align="left" class="cellrowborder" valign="top" width="18.37%" id="mcps1.3.3.2.2.6.1.1"><p id="mrs_01_1134__en-us_topic_0000001219029307_afd76144c29464de8a797f052dfd0f826">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="54.730000000000004%" id="mcps1.3.3.2.2.6.1.2"><p id="mrs_01_1134__en-us_topic_0000001219029307_ad6ae38ea1df64ef9bf30073c946d5f49">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="7.5200000000000005%" id="mcps1.3.3.2.2.6.1.3"><p id="mrs_01_1134__en-us_topic_0000001219029307_a1530e94d88dd4e0d8389916881bed11d">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="9.69%" id="mcps1.3.3.2.2.6.1.4"><p id="mrs_01_1134__en-us_topic_0000001219029307_abbb3f81a0d3d4c8b9fe070110635995d">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="9.69%" id="mcps1.3.3.2.2.6.1.5"><p id="mrs_01_1134__en-us_topic_0000001219029307_a9e3e25c3d8194918bdd460bf98ffe864">Default Value</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_1134__en-us_topic_0000001219029307_r9003297f8fee425dab081609f5d86cf0"><td class="cellrowborder" valign="top" width="18.37%" headers="mcps1.3.3.2.2.6.1.1 "><p id="mrs_01_1134__en-us_topic_0000001219029307_ac045d93fa63f46db888fb90a13974879">output field name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.730000000000004%" headers="mcps1.3.3.2.2.6.1.2 "><p id="mrs_01_1134__en-us_topic_0000001219029307_aa894c7486d40472680fd476660cafaa5">Names of generated random value fields.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.3.3.2.2.6.1.3 "><p id="mrs_01_1134__en-us_topic_0000001219029307_a6499741971ca41228639e6b3feaeadb3">string</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.69%" headers="mcps1.3.3.2.2.6.1.4 "><p id="mrs_01_1134__en-us_topic_0000001219029307_ae4ff1bef390943259f7ac16713c9e470">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.69%" headers="mcps1.3.3.2.2.6.1.5 "><p id="mrs_01_1134__en-us_topic_0000001219029307_a6f8bdf57328749aaaba520a4922cf2a5">None</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_1134__en-us_topic_0000001219029307_row11580134272118"><td class="cellrowborder" valign="top" width="18.37%" headers="mcps1.3.3.2.2.6.1.1 "><p id="mrs_01_1134__en-us_topic_0000001219029307_p4580144262111">length</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.730000000000004%" headers="mcps1.3.3.2.2.6.1.2 "><p id="mrs_01_1134__en-us_topic_0000001219029307_p12580642102118">Field length.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.3.3.2.2.6.1.3 "><p id="mrs_01_1134__en-us_topic_0000001219029307_aad511cbbfb7243cca05317baedba805c">map</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.69%" headers="mcps1.3.3.2.2.6.1.4 "><p id="mrs_01_1134__en-us_topic_0000001219029307_affb71a1c1653477dbc62a827a940a234">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.69%" headers="mcps1.3.3.2.2.6.1.5 "><p id="mrs_01_1134__en-us_topic_0000001219029307_a2a5b771b6dd94d1fbf3d424cd740fd61">None</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_1134__en-us_topic_0000001219029307_r69644bf79ce24ed8b2a9a3e94e4a3343"><td class="cellrowborder" valign="top" width="18.37%" headers="mcps1.3.3.2.2.6.1.1 "><p id="mrs_01_1134__en-us_topic_0000001219029307_a145365d732974f59ad8466b7b7fb43ab">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.730000000000004%" headers="mcps1.3.3.2.2.6.1.2 "><p id="mrs_01_1134__en-us_topic_0000001219029307_aae9da55df14f4cde9a52c40d19aed7eb">Field type. The options are <span class="parmvalue" id="mrs_01_1134__en-us_topic_0000001219029307_p092e3c2756ae4f4ca275a68bc5ccd265"><b>VARCHAR</b></span>, <span class="parmvalue" id="mrs_01_1134__en-us_topic_0000001219029307_p40f8008215b84322ade3d69c2c737010"><b>INTEGER</b></span>, and <span class="parmvalue" id="mrs_01_1134__en-us_topic_0000001219029307_p6a6c99c5872647858f796430b3822a94"><b>BIGINT</b></span>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.3.3.2.2.6.1.3 "><p id="mrs_01_1134__en-us_topic_0000001219029307_a9e408b9452b34a14962c866e40d55749">enum</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.69%" headers="mcps1.3.3.2.2.6.1.4 "><p id="mrs_01_1134__en-us_topic_0000001219029307_a7d71ce9a30ef4825abc80939924497cc">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.69%" headers="mcps1.3.3.2.2.6.1.5 "><p id="mrs_01_1134__en-us_topic_0000001219029307_aef1f75759ac547879e1377d16de3881b">VARCHAR</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="mrs_01_1134__en-us_topic_0000001219029307_s6d2bb660d367456cb639955e44965797"><h4 class="sectiontitle">Data Processing Rule</h4><p id="mrs_01_1134__en-us_topic_0000001219029307_a8f6d31d202e94003941fe086a6a5fd8b">The operator generates random value fields of specified type.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1134__en-us_topic_0000001219029307_s58372fd45b924fc88223db9d61049466"><h4 class="sectiontitle">Example</h4><p id="mrs_01_1134__en-us_topic_0000001219029307_a17c406a2743548bdbe00d2ce1c30f056">Use the <span class="parmname" id="mrs_01_1134__en-us_topic_0000001219029307_pd46316649924424389c5905c1f346a5b"><b>CSV File Input</b></span> operator to generate two fields A and B.</p>
|
|
<p id="mrs_01_1134__en-us_topic_0000001219029307_a1b6d7bab97bd4b49a412365dadab9af8">The following figure shows the source file.</p>
|
|
<p id="mrs_01_1134__en-us_topic_0000001219029307_a52c219487cdb4ad6866e653f0846e4e9"><span><img id="mrs_01_1134__en-us_topic_0000001219029307_i76c7570169854790802f05071ed4f674" src="en-us_image_0000001348740169.png"></span></p>
|
|
<p id="mrs_01_1134__en-us_topic_0000001219029307_aadd8f8b8c9f54285a0725145a5bde5fa">Configure the random value conversion operator to generate fields C, D, and E.</p>
|
|
<p id="mrs_01_1134__en-us_topic_0000001219029307_ac6bc4624c12f45efa92c4344209f1a76"><span><img id="mrs_01_1134__en-us_topic_0000001219029307_i8f78d7e0b75a449e9590d643c7299560" src="en-us_image_0000001296060140.png"></span></p>
|
|
<p id="mrs_01_1134__en-us_topic_0000001219029307_a7312355086954c71befb48e5573fd007">Five fields are generated.</p>
|
|
<p id="mrs_01_1134__en-us_topic_0000001219029307_a1c85f772a53a45389aaf746afd76ec49"><span><img id="mrs_01_1134__en-us_topic_0000001219029307_ia95c5352f0aa42fab56b3014e3bcd132" src="en-us_image_0000001296219768.jpg"></span></p>
|
|
<p id="mrs_01_1134__en-us_topic_0000001219029307_a9ad45c41f3f1474889f692c1fe46ba33">The random value fields generated each time are different.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1130.html">Conversion Operators</a></div>
|
|
</div>
|
|
</div>
|
|
|