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>
64 lines
7.0 KiB
HTML
64 lines
7.0 KiB
HTML
<a name="mrs_01_1132"></a><a name="mrs_01_1132"></a>
|
|
|
|
<h1 class="topictitle1">Null Value Conversion</h1>
|
|
<div id="body8662426"><div class="section" id="mrs_01_1132__en-us_topic_0000001219350651_see3a83c65f334a0ab686455689d5825a"><h4 class="sectiontitle">Overview</h4><p id="mrs_01_1132__en-us_topic_0000001219350651_ab39a9fbfff0141c98e06c2a3e304ffdd">The <span class="parmname" id="mrs_01_1132__en-us_topic_0000001219350651_p3d796d4229fa40e3a99d7b09e246e456"><b>null value conversion</b></span> operator replaces null values with specified values.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1132__en-us_topic_0000001219350651_s781173099ba34d79a9598dd263882e63"><h4 class="sectiontitle">Input and Output</h4><ul id="mrs_01_1132__en-us_topic_0000001219350651_uafae0806cbcb45c78f0d834b26a84a4f"><li id="mrs_01_1132__en-us_topic_0000001219350651_l17efe92e07624bc49b6fd03532f9582f">Input: fields with null values</li><li id="mrs_01_1132__en-us_topic_0000001219350651_l0a12ec8def8b4d52aa2db90bd995c4c1">Output: original fields with new values</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_01_1132__en-us_topic_0000001219350651_s4a37190013a44485a686fea0d3582d7a"><h4 class="sectiontitle">Parameter Description</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1132__en-us_topic_0000001219350651_t503ea80f0d6a4e63b38f1f1d638fc08e" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Operator parameters description</caption><thead align="left"><tr id="mrs_01_1132__en-us_topic_0000001219350651_r1be07e940b1b472fb62f642c65bdfe13"><th align="left" class="cellrowborder" valign="top" width="18.370000000000005%" id="mcps1.3.3.2.2.6.1.1"><p id="mrs_01_1132__en-us_topic_0000001219350651_a33633117fe84488aa1497a60eba9bcdb">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="52.660000000000004%" id="mcps1.3.3.2.2.6.1.2"><p id="mrs_01_1132__en-us_topic_0000001219350651_a5c9f984f8e0b4617b58b87777189f693">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="9.590000000000002%" id="mcps1.3.3.2.2.6.1.3"><p id="mrs_01_1132__en-us_topic_0000001219350651_a473f4a3ea5414f618749adf588709409">Node Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="9.690000000000001%" id="mcps1.3.3.2.2.6.1.4"><p id="mrs_01_1132__en-us_topic_0000001219350651_a0ba57b22b6cf490d91335d33847d0bfa">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="9.690000000000001%" id="mcps1.3.3.2.2.6.1.5"><p id="mrs_01_1132__en-us_topic_0000001219350651_a918be6dc26ed4ef5b141fdb5ba4defbf">Default Value</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_1132__en-us_topic_0000001219350651_r119400b21ecf492aaab3c3fa0b26890e"><td class="cellrowborder" valign="top" width="18.370000000000005%" headers="mcps1.3.3.2.2.6.1.1 "><p id="mrs_01_1132__en-us_topic_0000001219350651_a15df5cff945e4196b5112b16d5787efa">Input field name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.660000000000004%" headers="mcps1.3.3.2.2.6.1.2 "><p id="mrs_01_1132__en-us_topic_0000001219350651_a53438d93149847e8837da0bffaf26c1d">Names of fields that may have null values. Set this parameter to the names of existing fields.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.590000000000002%" headers="mcps1.3.3.2.2.6.1.3 "><p id="mrs_01_1132__en-us_topic_0000001219350651_a956a6fc61f8f4a8cb8ff4e1ba3d6f61a">string</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.690000000000001%" headers="mcps1.3.3.2.2.6.1.4 "><p id="mrs_01_1132__en-us_topic_0000001219350651_ae0bda08a09e34b2b9e1902d5294ed606">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.690000000000001%" headers="mcps1.3.3.2.2.6.1.5 "><p id="mrs_01_1132__en-us_topic_0000001219350651_ab3726ad202024b758e2887c8761868c6">None</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_1132__en-us_topic_0000001219350651_rbe3d914f9ee54de0bd5f7be292fc9b77"><td class="cellrowborder" valign="top" width="18.370000000000005%" headers="mcps1.3.3.2.2.6.1.1 "><p id="mrs_01_1132__en-us_topic_0000001219350651_a8c5ceb561dcb447699aaeeb71fe828bd">Replace by this value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.660000000000004%" headers="mcps1.3.3.2.2.6.1.2 "><p id="mrs_01_1132__en-us_topic_0000001219350651_a98cca30e66364e25860204626d947102">Specified values for replacing null values.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.590000000000002%" headers="mcps1.3.3.2.2.6.1.3 "><p id="mrs_01_1132__en-us_topic_0000001219350651_ad5e462adfec44acc92c877f5ee22fd49">string</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.690000000000001%" headers="mcps1.3.3.2.2.6.1.4 "><p id="mrs_01_1132__en-us_topic_0000001219350651_a12643e1523c64058ad8659af89d7f208">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.690000000000001%" headers="mcps1.3.3.2.2.6.1.5 "><p id="mrs_01_1132__en-us_topic_0000001219350651_aafb2739a533140309b202ffcbf3a9091">None</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="mrs_01_1132__en-us_topic_0000001219350651_sa75f3e41302c40ddbb1986da2258425b"><h4 class="sectiontitle">Data Processing Rule</h4><p id="mrs_01_1132__en-us_topic_0000001219350651_aebf14b71298f4b50bb078051ce0ed3e0">When field values are empty, specified values are added.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1132__en-us_topic_0000001219350651_s05a8c4e13ca141e18d62cb6606a86854"><h4 class="sectiontitle">Example</h4><p id="mrs_01_1132__en-us_topic_0000001219350651_afa5832f8f96049b182d4b1308792f8fc">Use the <span class="parmname" id="mrs_01_1132__en-us_topic_0000001219350651_p8e42922599bf43188b3b797b4a59e5c9"><b>CSV File Input</b></span> operator to generate two fields A and B.</p>
|
|
<p id="mrs_01_1132__en-us_topic_0000001219350651_a6c9ce77319824810932e99a67e97dd6d">The following figure shows the source file.</p>
|
|
<p id="mrs_01_1132__en-us_topic_0000001219350651_ae4cc025009bb4dbf8057f0bc5613fa13"><span><img id="mrs_01_1132__en-us_topic_0000001219350651_i2d39b3ac30e6444f826198e917944fc8" src="en-us_image_0000001348739825.jpg"></span></p>
|
|
<p id="mrs_01_1132__en-us_topic_0000001219350651_a1443bee82310423e8b1101169a1fb204">Configure the <span class="parmname" id="mrs_01_1132__en-us_topic_0000001219350651_pa95f2c7b0c1444369063294dc1e334d9"><b>null value conversion</b></span> operator, as shown in the following figure.</p>
|
|
<p id="mrs_01_1132__en-us_topic_0000001219350651_a51dd9b1b6a7a4d5091ddfeb54f928275"><span><img id="mrs_01_1132__en-us_topic_0000001219350651_i1d27afee94ac422297fa2cd600e49246" src="en-us_image_0000001349139513.png"></span></p>
|
|
<p id="mrs_01_1132__en-us_topic_0000001219350651_a8a1e44992ef14cd59c8acbc2ad2f89f3">After replacement, the values of fields A and B are as follows:</p>
|
|
<p id="mrs_01_1132__en-us_topic_0000001219350651_a9d674d09d1574026844b9c3e08cd8c91"><span><img id="mrs_01_1132__en-us_topic_0000001219350651_i24dc0a3d9e4e4db4901b70a0912d6024" src="en-us_image_0000001296219432.jpg"></span></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>
|
|
|