blob: 65dd55c1e62adc2838a1bc8458f828cd18e8468a [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.13"/>
<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: pivot.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);
</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 type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<!-- hack in the navigation tree -->
<script type="text/javascript" src="eigen_navtree_hacks.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', 'madlib.apache.org');
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.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.19.0</span>
</div>
<div id="projectbrief">User Documentation for Apache 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.13 -->
<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('pivot_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">pivot.sql_in File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>SQL functions for pivoting.
<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:aaabcd0b46dea69aa924a02d00119b064"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pivot_8sql__in.html#aaabcd0b46dea69aa924a02d00119b064">pivot</a> (text source_table, text output_table, text index, text pivot_cols, text pivot_values, text aggregate_func, text fill_value, boolean keep_null, boolean output_col_dictionary, text output_type)</td></tr>
<tr class="memdesc:aaabcd0b46dea69aa924a02d00119b064"><td class="mdescLeft">&#160;</td><td class="mdescRight">Helper function that can be used to pivot tables. <a href="#aaabcd0b46dea69aa924a02d00119b064">More...</a><br /></td></tr>
<tr class="separator:aaabcd0b46dea69aa924a02d00119b064"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54cf9b84a727e8364ea1f30c4ed77cf1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pivot_8sql__in.html#a54cf9b84a727e8364ea1f30c4ed77cf1">pivot</a> (text source_table, text output_table, text index, text pivot_cols, text pivot_values, text aggregate_func, text fill_value, boolean keep_null, boolean output_col_dictionary)</td></tr>
<tr class="separator:a54cf9b84a727e8364ea1f30c4ed77cf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9aac423ee5ab1746428712b6318d082e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pivot_8sql__in.html#a9aac423ee5ab1746428712b6318d082e">pivot</a> (text source_table, text output_table, text index, text pivot_cols, text pivot_values, text aggregate_func, text fill_value, boolean keep_null)</td></tr>
<tr class="separator:a9aac423ee5ab1746428712b6318d082e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4a81e670839f4c85dd3ec54105834cb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pivot_8sql__in.html#aa4a81e670839f4c85dd3ec54105834cb">pivot</a> (text source_table, text output_table, text index, text pivot_cols, text pivot_values, text aggregate_func, text fill_value)</td></tr>
<tr class="separator:aa4a81e670839f4c85dd3ec54105834cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d2163cb3a187ae9313712b115c14b75"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pivot_8sql__in.html#a1d2163cb3a187ae9313712b115c14b75">pivot</a> (text source_table, text output_table, text index, text pivot_cols, text pivot_values, text aggregate_func, boolean keep_null)</td></tr>
<tr class="separator:a1d2163cb3a187ae9313712b115c14b75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a321c365b023fba333a6b98093fd47492"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pivot_8sql__in.html#a321c365b023fba333a6b98093fd47492">pivot</a> (text source_table, text output_table, text index, text pivot_cols, text pivot_values, text aggregate_func)</td></tr>
<tr class="separator:a321c365b023fba333a6b98093fd47492"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6ee7cf2b82f8c01cbc3eb89afc0bab3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pivot_8sql__in.html#ad6ee7cf2b82f8c01cbc3eb89afc0bab3">pivot</a> (text source_table, text output_table, text index, text pivot_cols, text pivot_values, boolean keep_null)</td></tr>
<tr class="separator:ad6ee7cf2b82f8c01cbc3eb89afc0bab3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4928b16b8473c2f7818fd58a633c5df7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pivot_8sql__in.html#a4928b16b8473c2f7818fd58a633c5df7">pivot</a> (text source_table, text output_table, text index, text pivot_cols, text pivot_values)</td></tr>
<tr class="separator:a4928b16b8473c2f7818fd58a633c5df7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65b0595b546a491f87ae1a8b2c0d33ec"><td class="memItemLeft" align="right" valign="top">varchar&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pivot_8sql__in.html#a65b0595b546a491f87ae1a8b2c0d33ec">pivot</a> (varchar message)</td></tr>
<tr class="separator:a65b0595b546a491f87ae1a8b2c0d33ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a813c48cacf93deb9720a7994ee6d14bb"><td class="memItemLeft" align="right" valign="top">varchar&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pivot_8sql__in.html#a813c48cacf93deb9720a7994ee6d14bb">pivot</a> ()</td></tr>
<tr class="separator:a813c48cacf93deb9720a7994ee6d14bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at</p>
<p><a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a></p>
<p>Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.</p>
<dl class="section date"><dt>Date</dt><dd>June 2016</dd></dl>
<dl class="section see"><dt>See also</dt><dd>Creates a <a class="el" href="pivot_8sql__in.html#aaabcd0b46dea69aa924a02d00119b064" title="Helper function that can be used to pivot tables. ">pivot</a> table for data summarization. </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="aaabcd0b46dea69aa924a02d00119b064"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaabcd0b46dea69aa924a02d00119b064">&#9670;&nbsp;</a></span>pivot() <span class="overload">[1/10]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void pivot </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>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_cols</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_values</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>aggregate_func</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>fill_value</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">boolean&#160;</td>
<td class="paramname"><em>keep_null</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">boolean&#160;</td>
<td class="paramname"><em>output_col_dictionary</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>output_type</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>The original data table </td></tr>
<tr><td class="paramname">output_table</td><td>The output table that contains the dummy variable columns </td></tr>
<tr><td class="paramname">index</td><td>The index columns to group by the records by </td></tr>
<tr><td class="paramname">pivot_cols</td><td>The columns to pivot the table </td></tr>
<tr><td class="paramname">pivot_values</td><td>The value columns to be summarized in the pivoted table </td></tr>
<tr><td class="paramname">aggregate_func</td><td>The aggregate function to be applied to the values </td></tr>
<tr><td class="paramname">fill_value</td><td>If specified, determines how to fill NULL values resulting from pivot operation </td></tr>
<tr><td class="paramname">keep_null</td><td>The flag for determining how to handle NULL values in pivot columns </td></tr>
<tr><td class="paramname">output_col_dictionary</td><td>The flag for enabling the creation of the output dictionary for shorter column names </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Void </dd></dl>
</div>
</div>
<a id="a54cf9b84a727e8364ea1f30c4ed77cf1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54cf9b84a727e8364ea1f30c4ed77cf1">&#9670;&nbsp;</a></span>pivot() <span class="overload">[2/10]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void pivot </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>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_cols</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_values</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>aggregate_func</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>fill_value</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">boolean&#160;</td>
<td class="paramname"><em>keep_null</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">boolean&#160;</td>
<td class="paramname"><em>output_col_dictionary</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a9aac423ee5ab1746428712b6318d082e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9aac423ee5ab1746428712b6318d082e">&#9670;&nbsp;</a></span>pivot() <span class="overload">[3/10]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void pivot </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>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_cols</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_values</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>aggregate_func</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>fill_value</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">boolean&#160;</td>
<td class="paramname"><em>keep_null</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="aa4a81e670839f4c85dd3ec54105834cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4a81e670839f4c85dd3ec54105834cb">&#9670;&nbsp;</a></span>pivot() <span class="overload">[4/10]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void pivot </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>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_cols</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_values</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>aggregate_func</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>fill_value</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a1d2163cb3a187ae9313712b115c14b75"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d2163cb3a187ae9313712b115c14b75">&#9670;&nbsp;</a></span>pivot() <span class="overload">[5/10]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void pivot </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>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_cols</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_values</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>aggregate_func</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">boolean&#160;</td>
<td class="paramname"><em>keep_null</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a321c365b023fba333a6b98093fd47492"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a321c365b023fba333a6b98093fd47492">&#9670;&nbsp;</a></span>pivot() <span class="overload">[6/10]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void pivot </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>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_cols</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_values</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>aggregate_func</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ad6ee7cf2b82f8c01cbc3eb89afc0bab3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6ee7cf2b82f8c01cbc3eb89afc0bab3">&#9670;&nbsp;</a></span>pivot() <span class="overload">[7/10]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void pivot </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>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_cols</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_values</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">boolean&#160;</td>
<td class="paramname"><em>keep_null</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a4928b16b8473c2f7818fd58a633c5df7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4928b16b8473c2f7818fd58a633c5df7">&#9670;&nbsp;</a></span>pivot() <span class="overload">[8/10]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void pivot </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>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_cols</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>pivot_values</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a65b0595b546a491f87ae1a8b2c0d33ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65b0595b546a491f87ae1a8b2c0d33ec">&#9670;&nbsp;</a></span>pivot() <span class="overload">[9/10]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">varchar pivot </td>
<td>(</td>
<td class="paramtype">varchar&#160;</td>
<td class="paramname"><em>message</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a813c48cacf93deb9720a7994ee6d14bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a813c48cacf93deb9720a7994ee6d14bb">&#9670;&nbsp;</a></span>pivot() <span class="overload">[10/10]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">varchar pivot </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</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="pivot_8sql__in.html">pivot.sql_in</a></li>
<li class="footer">Generated on Wed Dec 15 2021 20:27:18 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
</ul>
</div>
</body>
</html>