forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
81 lines
8.7 KiB
HTML
81 lines
8.7 KiB
HTML
<a name="dli_08_0469"></a><a name="dli_08_0469"></a>
|
|
|
|
<h1 class="topictitle1">Overview</h1>
|
|
<div id="body8662426"><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0206796834_en-us_topic_0093946912_a4eb9a9b304ea448e951ef2c47f18f371">The following table lists the functions provided by DLI, such as <strong id="dli_08_0469__en-us_topic_0000001657170862_b1411015208542">decode1</strong>, <strong id="dli_08_0469__en-us_topic_0000001657170862_b1586832615410">javahash</strong>, and <strong id="dli_08_0469__en-us_topic_0000001657170862_b745044055410">max_pt</strong>.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_table17216347145711" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Added functions</caption><thead align="left"><tr id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_row17216124785717"><th align="left" class="cellrowborder" valign="top" width="27.609664555477366%" id="mcps1.3.2.2.4.1.1"><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0206796834_en-us_topic_0093946912_abfe0d47e35bc4affa014a47155c9bb56">Syntax</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15.235749472202672%" id="mcps1.3.2.2.4.1.2"><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0206796834_en-us_topic_0093946912_ac683ec8a51644d5594e147e17be71eb8">Value Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.15458597231996%" id="mcps1.3.2.2.4.1.3"><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0206796834_en-us_topic_0093946912_a511f207accc748b390d97221bc2d70b5">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_08_0469__en-us_topic_0000001657170862_row14409948195912"><td class="cellrowborder" valign="top" width="27.609664555477366%" headers="mcps1.3.2.2.4.1.1 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p13927726121">decode1(<expression>, <search>, <result>[, <search>, <result>]...[, <default>])</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.235749472202672%" headers="mcps1.3.2.2.4.1.2 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p3916125572914">Data type of the argument</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.15458597231996%" headers="mcps1.3.2.2.4.1.3 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p10928142620215">Implements if-then-else branch selection.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_0469__en-us_topic_0000001657170862_row7409174819590"><td class="cellrowborder" valign="top" width="27.609664555477366%" headers="mcps1.3.2.2.4.1.1 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p1804935104020">javahash(string a)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.235749472202672%" headers="mcps1.3.2.2.4.1.2 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p964563512579">STRING</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.15458597231996%" headers="mcps1.3.2.2.4.1.3 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p7105131934016">Returns a hash value.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_0469__en-us_topic_0000001657170862_row2409648175917"><td class="cellrowborder" valign="top" width="27.609664555477366%" headers="mcps1.3.2.2.4.1.1 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p118531517159">max_pt(<table_full_name>)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.235749472202672%" headers="mcps1.3.2.2.4.1.2 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p116391535104311">STRING</p>
|
|
<p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p572455015391"></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.15458597231996%" headers="mcps1.3.2.2.4.1.3 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p20853317754">Returns the name of the largest level-1 partition that contains data in a partitioned table and reads the data of this partition.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_0469__en-us_topic_0000001657170862_row44091848125920"><td class="cellrowborder" valign="top" width="27.609664555477366%" headers="mcps1.3.2.2.4.1.1 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p111971157456">ordinal(bigint <nth>, <var1>, <var2>[,...])</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.235749472202672%" headers="mcps1.3.2.2.4.1.2 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p7970413162718">DOUBLE or DATETIME</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.15458597231996%" headers="mcps1.3.2.2.4.1.3 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p16198157659">Sorts input variables in ascending order and returns the value at the position specified by nth.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_0469__en-us_topic_0000001657170862_row1340904855914"><td class="cellrowborder" valign="top" width="27.609664555477366%" headers="mcps1.3.2.2.4.1.1 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p57621816319">trans_array (<num_keys>, <separator>, <key1>,<key2>,…,<col1>,<col2>,<col3>) as (<key1>,<key2>,...,<col1>, <col2>)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.235749472202672%" headers="mcps1.3.2.2.4.1.2 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p1564523595717">Data type of the argument</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.15458597231996%" headers="mcps1.3.2.2.4.1.3 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p16761187320">Converts an array split by a fixed separator in a column into multiple rows.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_0469__en-us_topic_0000001657170862_row19227163515018"><td class="cellrowborder" valign="top" width="27.609664555477366%" headers="mcps1.3.2.2.4.1.1 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p5874151011716">trunc_numeric(<number>[, bigint<decimal_places>])</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.235749472202672%" headers="mcps1.3.2.2.4.1.2 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p196451735115714">DOUBLE or DECIMAL</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.15458597231996%" headers="mcps1.3.2.2.4.1.3 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p68747103719">Truncates the <strong id="dli_08_0469__en-us_topic_0000001657170862_b730353419566">number</strong> value to a specified decimal place.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_0469__en-us_topic_0000001657170862_row580112431207"><td class="cellrowborder" valign="top" width="27.609664555477366%" headers="mcps1.3.2.2.4.1.1 "><p id="dli_08_0469__en-us_topic_0000001657170862_p498613311474">url_decode(string <input>[, string <encoding>])</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.235749472202672%" headers="mcps1.3.2.2.4.1.2 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p1464433514574">STRING</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.15458597231996%" headers="mcps1.3.2.2.4.1.3 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p18926439909">Converts a string from the <strong id="dli_08_0469__en-us_topic_0000001657170862_b1654384217561">application/x-www-form-urlencoded MIME</strong> format to regular characters.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_row3217184705712"><td class="cellrowborder" valign="top" width="27.609664555477366%" headers="mcps1.3.2.2.4.1.1 "><p id="dli_08_0469__en-us_topic_0000001657170862_p1686317144818">url_encode(string <input>[, string <encoding>])</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.235749472202672%" headers="mcps1.3.2.2.4.1.2 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p1644835115713">STRING</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.15458597231996%" headers="mcps1.3.2.2.4.1.3 "><p id="dli_08_0469__en-us_topic_0000001657170862_en-us_topic_0000001606453801_p9217447165712">Encodes a string in the <strong id="dli_08_0469__en-us_topic_0000001657170862_b1975424635611">application/x-www-form-urlencoded MIME</strong> format.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_08_0476.html">Other Functions</a></div>
|
|
</div>
|
|
</div>
|
|
|