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>
58 lines
6.5 KiB
HTML
58 lines
6.5 KiB
HTML
<a name="dli_08_0285"></a><a name="dli_08_0285"></a>
|
|
|
|
<h1 class="topictitle1">Displaying All Functions</h1>
|
|
<div id="body1594366373345"><div class="section" id="dli_08_0285__en-us_topic_0114776168_en-us_topic_0093946767_scb8fb8019822497fa6172b288dee9366"><h4 class="sectiontitle">Function</h4><p id="dli_08_0285__en-us_topic_0114776168_en-us_topic_0093946767_a18355f1551ad4c2b991d9b76e8e8d508">View all functions in the current project.</p>
|
|
</div>
|
|
<div class="section" id="dli_08_0285__en-us_topic_0114776168_en-us_topic_0093946767_s2f32e27d18094d6b9dcdd060c812e90e"><h4 class="sectiontitle">Syntax</h4><div class="codecoloring" codetype="Sql" id="dli_08_0285__en-us_topic_0114776168_screen1312143018918"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SHOW</span><span class="w"> </span><span class="p">[</span><span class="k">USER</span><span class="o">|</span><span class="k">SYSTEM</span><span class="o">|</span><span class="k">ALL</span><span class="p">]</span><span class="w"> </span><span class="n">FUNCTIONS</span><span class="w"> </span><span class="p">([</span><span class="k">LIKE</span><span class="p">]</span><span class="w"> </span><span class="n">regex</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="p">[</span><span class="n">db_name</span><span class="p">.]</span><span class="w"> </span><span class="n">function_name</span><span class="p">);</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
<p id="dli_08_0285__p2380181110441"></p>
|
|
<p id="dli_08_0285__p15974203033410">In the preceding statement, regex is a regular expression. For details about its parameters, see <a href="#dli_08_0285__table19771171316361">Table 1</a>.</p>
|
|
|
|
<div class="tablenoborder"><a name="dli_08_0285__table19771171316361"></a><a name="table19771171316361"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_08_0285__table19771171316361" frame="border" border="1" rules="all"><caption><b>Table 1 </b>regex parameters</caption><thead align="left"><tr id="dli_08_0285__row1771181373618"><th align="left" class="cellrowborder" valign="top" width="28.49%" id="mcps1.3.2.5.2.3.1.1"><p id="dli_08_0285__p27711136366">Expression</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="71.50999999999999%" id="mcps1.3.2.5.2.3.1.2"><p id="dli_08_0285__p877131343615">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_08_0285__row12771513133618"><td class="cellrowborder" valign="top" width="28.49%" headers="mcps1.3.2.5.2.3.1.1 "><p id="dli_08_0285__p277171333614">'xpath*'</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.50999999999999%" headers="mcps1.3.2.5.2.3.1.2 "><p id="dli_08_0285__p3102168113911">Matches all functions whose names start with <strong id="dli_08_0285__b14564114210208">xpath</strong>.</p>
|
|
<p id="dli_08_0285__p13938192011382">Example: SHOW FUNCTIONS LIKE'xpath* ;</p>
|
|
<p id="dli_08_0285__p10223854394">Matches functions whose names start with <strong id="dli_08_0285__b1013694612203">xpath</strong>, including <strong id="dli_08_0285__b714216464205">xpath</strong>, <strong id="dli_08_0285__b1714294611201">xpath_int</strong>, and <strong id="dli_08_0285__b514215469203">xpath_string</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_0285__row8771111363612"><td class="cellrowborder" valign="top" width="28.49%" headers="mcps1.3.2.5.2.3.1.1 "><p id="dli_08_0285__p117712135367">'x[a-z]+'</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.50999999999999%" headers="mcps1.3.2.5.2.3.1.2 "><p id="dli_08_0285__p19771513103619">Matches functions whose names start with <strong id="dli_08_0285__b897084732011">x</strong> and is followed by one or more characters from a to z. For example, <strong id="dli_08_0285__b330418495203">xpath</strong> and <strong id="dli_08_0285__b133047496206">xtest</strong> can be matched.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_0285__row984862217534"><td class="cellrowborder" valign="top" width="28.49%" headers="mcps1.3.2.5.2.3.1.1 "><p id="dli_08_0285__p13848202265316">'x.*h'</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.50999999999999%" headers="mcps1.3.2.5.2.3.1.2 "><p id="dli_08_0285__p4848722115317">Matches functions whose names start with <strong id="dli_08_0285__b20869151192014">x</strong>, end with <strong id="dli_08_0285__b1586975162015">h</strong>, and contain one or more characters in the middle. For example, <strong id="dli_08_0285__b11411195311204">xpath</strong> and <strong id="dli_08_0285__b1741125382011">xtesth</strong> can be matched.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="dli_08_0285__p186290420143">For details about other expressions, see the official website.</p>
|
|
</div>
|
|
<div class="section" id="dli_08_0285__en-us_topic_0114776168_en-us_topic_0093946767_s048cef1892e14c66b05ea6a6dacd97cc"><h4 class="sectiontitle">Keywords</h4><p id="dli_08_0285__en-us_topic_0114776168_en-us_topic_0093946767_a6cc9d32172d44bfb82a9ee94318e6629">LIKE: This qualifier is used only for compatibility and has no actual effect.</p>
|
|
</div>
|
|
<div class="section" id="dli_08_0285__en-us_topic_0114776168_en-us_topic_0093946767_se0feee7d1da745c6b7a458260a4a47d0"><h4 class="sectiontitle">Precautions</h4><p id="dli_08_0285__en-us_topic_0114776168_en-us_topic_0093946767_ab288a9876efa43fa8c37bf2026d4625b">The function that matches the given regular expression or function name are displayed. If no regular expression or name is provided, all functions are displayed. If USER or SYSTEM is specified, user-defined Spark SQL functions and system-defined Spark SQL functions are displayed, respectively.</p>
|
|
</div>
|
|
<div class="section" id="dli_08_0285__en-us_topic_0114776168_en-us_topic_0093946767_s92f8698288224b3286bfb9c75096c6d9"><h4 class="sectiontitle">Example</h4><p id="dli_08_0285__en-us_topic_0114776168_en-us_topic_0093946767_a930414cdf36b4c0ab990680ce78e28d7">This statement is used to view all functions.</p>
|
|
<div class="codecoloring" codetype="Sql" id="dli_08_0285__en-us_topic_0114776168_screen157313563915"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SHOW</span><span class="w"> </span><span class="n">FUNCTIONS</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_08_0282.html">User-Defined Functions</a></div>
|
|
</div>
|
|
</div>
|
|
|