blob: f82e33cf86f9320323556d8049ca041943799a52 [file] [log] [blame]
<!-- HTML header for doxygen 1.8.4-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<meta name="keywords" content="madlib,postgres,greenplum,machine learning,data mining,deep learning,ensemble methods,data science,market basket analysis,affinity analysis,pca,lda,regression,elastic net,huber white,proportional hazards,k-means,latent dirichlet allocation,bayes,support vector machines,svm"/>
<title>MADlib: utilities.sql_in File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script src="../mathjax/MathJax.js"></script>
<!-- hack in the navigation tree -->
<script type="text/javascript" src="navtree_hack.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
<!-- google analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-45382226-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">
<span id="projectnumber">1.8</span>
</div>
<div id="projectbrief">User Documentation for MADlib</div>
</td>
<td> <div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('utilities_8sql__in.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">utilities.sql_in File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>SQL functions for carrying out routine tasks.
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aab5ea2cd6201e38e24ca62b0fb91fb7a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#aab5ea2cd6201e38e24ca62b0fb91fb7a">cleanup_madlib_temp_tables</a> (text target_schema)</td></tr>
<tr class="memdesc:aab5ea2cd6201e38e24ca62b0fb91fb7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Drop all tables matching pattern 'madlib_temp' in a given schema. <a href="#aab5ea2cd6201e38e24ca62b0fb91fb7a">More...</a><br /></td></tr>
<tr class="separator:aab5ea2cd6201e38e24ca62b0fb91fb7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a156eb9d1c814592e59600980977a64eb"><td class="memItemLeft" align="right" valign="top">text&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a156eb9d1c814592e59600980977a64eb">cleanup_madlib_temp_tables_script</a> (text target_schema)</td></tr>
<tr class="separator:a156eb9d1c814592e59600980977a64eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ce7ffa76acc8a0638e9bc48be99f36a"><td class="memItemLeft" align="right" valign="top">text&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a9ce7ffa76acc8a0638e9bc48be99f36a">version</a> ()</td></tr>
<tr class="memdesc:a9ce7ffa76acc8a0638e9bc48be99f36a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return MADlib build information. <a href="#a9ce7ffa76acc8a0638e9bc48be99f36a">More...</a><br /></td></tr>
<tr class="separator:a9ce7ffa76acc8a0638e9bc48be99f36a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76cfdbed8a6782f37f50710d855434bd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a76cfdbed8a6782f37f50710d855434bd">assert</a> (boolean condition, varchar msg)</td></tr>
<tr class="memdesc:a76cfdbed8a6782f37f50710d855434bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Raise an exception if the given condition is not satisfied. <a href="#a76cfdbed8a6782f37f50710d855434bd">More...</a><br /></td></tr>
<tr class="separator:a76cfdbed8a6782f37f50710d855434bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d49e00b4dd6059f61ffb9fdc0a696f7"><td class="memItemLeft" align="right" valign="top">float8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a4d49e00b4dd6059f61ffb9fdc0a696f7">relative_error</a> (float8 approx, float8 value)</td></tr>
<tr class="memdesc:a4d49e00b4dd6059f61ffb9fdc0a696f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the relative error of an approximate value. <a href="#a4d49e00b4dd6059f61ffb9fdc0a696f7">More...</a><br /></td></tr>
<tr class="separator:a4d49e00b4dd6059f61ffb9fdc0a696f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26a54368fbf2460323cacf95db76fd2f"><td class="memItemLeft" align="right" valign="top">float8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a26a54368fbf2460323cacf95db76fd2f">relative_error</a> (float8[] approx, float8[] value)</td></tr>
<tr class="memdesc:a26a54368fbf2460323cacf95db76fd2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the relative error (w.r.t. the 2-norm) of an apprixmate vector. <a href="#a26a54368fbf2460323cacf95db76fd2f">More...</a><br /></td></tr>
<tr class="separator:a26a54368fbf2460323cacf95db76fd2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa90ffaebb43a5cbcb5c48281cbadd3b0"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#aa90ffaebb43a5cbcb5c48281cbadd3b0">check_if_raises_error</a> (text sql)</td></tr>
<tr class="memdesc:aa90ffaebb43a5cbcb5c48281cbadd3b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if a SQL statement raises an error. <a href="#aa90ffaebb43a5cbcb5c48281cbadd3b0">More...</a><br /></td></tr>
<tr class="separator:aa90ffaebb43a5cbcb5c48281cbadd3b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1f509bd94c6309b59eb4d479fb2a470"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#ac1f509bd94c6309b59eb4d479fb2a470">check_if_col_exists</a> (text source_table, text column_name)</td></tr>
<tr class="memdesc:ac1f509bd94c6309b59eb4d479fb2a470"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if a column exists in a table. <a href="#ac1f509bd94c6309b59eb4d479fb2a470">More...</a><br /></td></tr>
<tr class="separator:ac1f509bd94c6309b59eb4d479fb2a470"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48bed63cab78a5446fa4c122eaae3a40"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a48bed63cab78a5446fa4c122eaae3a40">isnan</a> (float8 number)</td></tr>
<tr class="memdesc:a48bed63cab78a5446fa4c122eaae3a40"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if a floating-point number is NaN (not a number) <a href="#a48bed63cab78a5446fa4c122eaae3a40">More...</a><br /></td></tr>
<tr class="separator:a48bed63cab78a5446fa4c122eaae3a40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56501b6f9fabe65d7a6a6beb70a0e000"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a56501b6f9fabe65d7a6a6beb70a0e000">create_schema_pg_temp</a> ()</td></tr>
<tr class="memdesc:a56501b6f9fabe65d7a6a6beb70a0e000"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create the temporary schema if it does not exist yet. <a href="#a56501b6f9fabe65d7a6a6beb70a0e000">More...</a><br /></td></tr>
<tr class="separator:a56501b6f9fabe65d7a6a6beb70a0e000"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab194d6a1222672c314ea39b78aad8fd0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#ab194d6a1222672c314ea39b78aad8fd0">noop</a> ()</td></tr>
<tr class="memdesc:ab194d6a1222672c314ea39b78aad8fd0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create volatile noop function. <a href="#ab194d6a1222672c314ea39b78aad8fd0">More...</a><br /></td></tr>
<tr class="separator:ab194d6a1222672c314ea39b78aad8fd0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60c4765ce8dc639cbb0ad4c389f5f1ad"><td class="memItemLeft" align="right" valign="top">bytea8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a60c4765ce8dc639cbb0ad4c389f5f1ad">bytea8in</a> (cstring)</td></tr>
<tr class="separator:a60c4765ce8dc639cbb0ad4c389f5f1ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adff923d42d4bdb2b631d6cafd5f37a43"><td class="memItemLeft" align="right" valign="top">cstring&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#adff923d42d4bdb2b631d6cafd5f37a43">bytea8out</a> (bytea8)</td></tr>
<tr class="separator:adff923d42d4bdb2b631d6cafd5f37a43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a244a7ff30f2788a6f4816417982eb13b"><td class="memItemLeft" align="right" valign="top">bytea8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a244a7ff30f2788a6f4816417982eb13b">bytea8recv</a> (internal)</td></tr>
<tr class="separator:a244a7ff30f2788a6f4816417982eb13b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb90c740e8e6b67aa60a11c430fa9050"><td class="memItemLeft" align="right" valign="top">bytea&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#aeb90c740e8e6b67aa60a11c430fa9050">bytea8send</a> (bytea8)</td></tr>
<tr class="separator:aeb90c740e8e6b67aa60a11c430fa9050"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7086f5e79c0f53a849759227759d16d7"><td class="memItemLeft" align="right" valign="top">varchar&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a7086f5e79c0f53a849759227759d16d7">__internal_get_col_names_except_dep_variable</a> (varchar source_table, varchar dependent_varname)</td></tr>
<tr class="memdesc:a7086f5e79c0f53a849759227759d16d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get all column names except dependent variable. <a href="#a7086f5e79c0f53a849759227759d16d7">More...</a><br /></td></tr>
<tr class="separator:a7086f5e79c0f53a849759227759d16d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b0156044142673183205154f9e63ddc"><td class="memItemLeft" align="right" valign="top">varchar&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a5b0156044142673183205154f9e63ddc">__unique_string</a> ()</td></tr>
<tr class="memdesc:a5b0156044142673183205154f9e63ddc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate random remporary names for temp table and other names. <a href="#a5b0156044142673183205154f9e63ddc">More...</a><br /></td></tr>
<tr class="separator:a5b0156044142673183205154f9e63ddc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a967afc3041b28c8ceedcef8d25c26b9b"><td class="memItemLeft" align="right" valign="top">varchar[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a967afc3041b28c8ceedcef8d25c26b9b">_string_to_array</a> (varchar s)</td></tr>
<tr class="memdesc:a967afc3041b28c8ceedcef8d25c26b9b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Takes a string of comma separated values and puts it into an array. <a href="#a967afc3041b28c8ceedcef8d25c26b9b">More...</a><br /></td></tr>
<tr class="separator:a967afc3041b28c8ceedcef8d25c26b9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc867482053e6692047d051b679953a5"><td class="memItemLeft" align="right" valign="top">text&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#abc867482053e6692047d051b679953a5">bool_to_text</a> (boolean)</td></tr>
<tr class="memdesc:abc867482053e6692047d051b679953a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cast boolean into text. <a href="#abc867482053e6692047d051b679953a5">More...</a><br /></td></tr>
<tr class="separator:abc867482053e6692047d051b679953a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdd2768e61b034d04c934a981259bbfd"><td class="memItemLeft" align="right" valign="top">text&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#abdd2768e61b034d04c934a981259bbfd">__to_char</a> (anyelement val)</td></tr>
<tr class="memdesc:abdd2768e61b034d04c934a981259bbfd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cast any value to text. <a href="#abdd2768e61b034d04c934a981259bbfd">More...</a><br /></td></tr>
<tr class="separator:abdd2768e61b034d04c934a981259bbfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2dc21ec6de26adef2cf1699ed8dab5aa"><td class="memItemLeft" align="right" valign="top">set&lt; _grp_state_type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a2dc21ec6de26adef2cf1699ed8dab5aa">_gen_state</a> (text[] grp_key, integer[] iteration, float8[] state)</td></tr>
<tr class="separator:a2dc21ec6de26adef2cf1699ed8dab5aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a378fd0afa1245520f2270e602ed9e6b6"><td class="memItemLeft" align="right" valign="top">float8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a378fd0afa1245520f2270e602ed9e6b6">_final_mode</a> (float8[])</td></tr>
<tr class="separator:a378fd0afa1245520f2270e602ed9e6b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac25ef90f8a8e2f9b2244a57d92086c91"><td class="memItemLeft" align="right" valign="top">aggregate float8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#ac25ef90f8a8e2f9b2244a57d92086c91">mode</a> (float8)</td></tr>
<tr class="separator:ac25ef90f8a8e2f9b2244a57d92086c91"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section see"><dt>See also</dt><dd>For a brief overview of utility functions, see the module description <a class="el" href="group__grp__utilities.html">Developer Database Functions</a>. </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a7086f5e79c0f53a849759227759d16d7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">varchar __internal_get_col_names_except_dep_variable </td>
<td>(</td>
<td class="paramtype">varchar&#160;</td>
<td class="paramname"><em>source_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">varchar&#160;</td>
<td class="paramname"><em>dependent_varname</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="abdd2768e61b034d04c934a981259bbfd"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">text __to_char </td>
<td>(</td>
<td class="paramtype">anyelement&#160;</td>
<td class="paramname"><em>val</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">val</td><td>A value with any specific type.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The text format string for the value.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>Greenplum doesn't support bit/boolean to text casting. </dd></dl>
</div>
</div>
<a class="anchor" id="a5b0156044142673183205154f9e63ddc"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">varchar __unique_string </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a378fd0afa1245520f2270e602ed9e6b6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float8 _final_mode </td>
<td>(</td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">[]</td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a2dc21ec6de26adef2cf1699ed8dab5aa"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">set&lt;_grp_state_type&gt; _gen_state </td>
<td>(</td>
<td class="paramtype">text[]&#160;</td>
<td class="paramname"><em>grp_key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer[]&#160;</td>
<td class="paramname"><em>iteration</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>state</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a967afc3041b28c8ceedcef8d25c26b9b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">varchar [] _string_to_array </td>
<td>(</td>
<td class="paramtype">varchar&#160;</td>
<td class="paramname"><em>s</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a76cfdbed8a6782f37f50710d855434bd"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void assert </td>
<td>(</td>
<td class="paramtype">boolean&#160;</td>
<td class="paramname"><em>condition</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">varchar&#160;</td>
<td class="paramname"><em>msg</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="abc867482053e6692047d051b679953a5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">text bool_to_text </td>
<td>(</td>
<td class="paramtype">boolean&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a60c4765ce8dc639cbb0ad4c389f5f1ad"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bytea8 bytea8in </td>
<td>(</td>
<td class="paramtype">cstring&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="adff923d42d4bdb2b631d6cafd5f37a43"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">cstring bytea8out </td>
<td>(</td>
<td class="paramtype">bytea8&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a244a7ff30f2788a6f4816417982eb13b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bytea8 bytea8recv </td>
<td>(</td>
<td class="paramtype">internal&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="aeb90c740e8e6b67aa60a11c430fa9050"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bytea bytea8send </td>
<td>(</td>
<td class="paramtype">bytea8&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ac1f509bd94c6309b59eb4d479fb2a470"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boolean check_if_col_exists </td>
<td>(</td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>source_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>column_name</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">source_table</td><td>Source table </td></tr>
<tr><td class="paramname">column_name</td><td>Column name in the table </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>TRUE</code> if it exsists and FALSE if not </dd></dl>
</div>
</div>
<a class="anchor" id="aa90ffaebb43a5cbcb5c48281cbadd3b0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boolean check_if_raises_error </td>
<td>(</td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>sql</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">sql</td><td>The SQL statement </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>TRUE</code> if an exception is raised while executing <code>sql</code>, <code>FALSE</code> otherwise. </dd></dl>
</div>
</div>
<a class="anchor" id="aab5ea2cd6201e38e24ca62b0fb91fb7a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void cleanup_madlib_temp_tables </td>
<td>(</td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>target_schema</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">target_schema</td><td>TEXT. The schema that takes affect. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a156eb9d1c814592e59600980977a64eb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">text cleanup_madlib_temp_tables_script </td>
<td>(</td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>target_schema</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a56501b6f9fabe65d7a6a6beb70a0e000"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void create_schema_pg_temp </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a48bed63cab78a5446fa4c122eaae3a40"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boolean isnan </td>
<td>(</td>
<td class="paramtype">float8&#160;</td>
<td class="paramname"><em>number</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>This function exists for portability. Some DBMSs like PostgreSQL treat floating-point numbers as fully ordered &ndash; contrary to IEEE 754. (See, e.g., the <a href="http://www.postgresql.org/docs/current/static/datatype-numeric.html#DATATYPE-FLOAT">PostgreSQL documentation</a>. For portability, MADlib code should not make use of such "features" directly, but only use <a class="el" href="utilities_8sql__in.html#a48bed63cab78a5446fa4c122eaae3a40" title="Check if a floating-point number is NaN (not a number) ">isnan()</a> instead.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">number</td><td></td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>TRUE</code> if <code>number</code> is <code>NaN</code>, <code>FALSE</code> otherwise </dd></dl>
</div>
</div>
<a class="anchor" id="ac25ef90f8a8e2f9b2244a57d92086c91"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">aggregate float8 mode </td>
<td>(</td>
<td class="paramtype">float8&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ab194d6a1222672c314ea39b78aad8fd0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void noop </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The only use of this function is as an optimization fence when used in the SELECT list of a query. See, e.g., <a href="http://archives.postgresql.org/pgsql-sql/2012-07/msg00030.php">http://archives.postgresql.org/pgsql-sql/2012-07/msg00030.php</a> </p>
</div>
</div>
<a class="anchor" id="a4d49e00b4dd6059f61ffb9fdc0a696f7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float8 relative_error </td>
<td>(</td>
<td class="paramtype">float8&#160;</td>
<td class="paramname"><em>approx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname"><em>value</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a26a54368fbf2460323cacf95db76fd2f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float8 relative_error </td>
<td>(</td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>approx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>value</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a9ce7ffa76acc8a0638e9bc48be99f36a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">text version </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Summary of MADlib build information, consisting of MADlib version, git revision, cmake configuration time, build type, build system, C compiler, and C++ compiler </dd></dl>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_efbcf68973d247bbf15f9eecae7f24e3.html">ports</a></li><li class="navelem"><a class="el" href="dir_a4a48839224ef8488facbffa8a397967.html">postgres</a></li><li class="navelem"><a class="el" href="dir_dc596537ad427a4d866006d1a3e1fe29.html">modules</a></li><li class="navelem"><a class="el" href="dir_8d53e1c0026e7e34b4cd68f8b91426d6.html">utilities</a></li><li class="navelem"><a class="el" href="utilities_8sql__in.html">utilities.sql_in</a></li>
<li class="footer">Generated on Mon Jul 27 2015 20:37:45 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
</div>
</body>
</html>