> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# gpudb::AggregateUnpivotRequest

> gpudb::AggregateUnpivotRequest — Kinetica C++ API

<div className="kinetica-doxygen">
  <div className="contents">
    <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#abb9e5e7039f10b231076f29aa7a01f13">GPUdb::aggregateUnpivot</a>. <a href="#details">More...</a></p>
    <p><code>#include \<<a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source">gpudb/protocol/aggregate\_unpivot.h</a>></code></p>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Member Functions</h2>
        </td>
      </tr>

      <tr className="memitem:ae8efc50c0409baf03eadfc908a485dd7" id="r_ae8efc50c0409baf03eadfc908a485dd7">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#ae8efc50c0409baf03eadfc908a485dd7">AggregateUnpivotRequest</a> ()</td>
      </tr>

      <tr className="memdesc:ae8efc50c0409baf03eadfc908a485dd7">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs an <a className="el" href="/content/api/cpp/structgpudb_1_1AggregateUnpivotRequest" title="A set of parameters for GPUdb::aggregateUnpivot.">AggregateUnpivotRequest</a> object with default parameters. <br /></td>
      </tr>

      <tr className="separator:ae8efc50c0409baf03eadfc908a485dd7">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a83221dc658cb5c4c2b2fcac1d4b91864" id="r_a83221dc658cb5c4c2b2fcac1d4b91864">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a83221dc658cb5c4c2b2fcac1d4b91864">AggregateUnpivotRequest</a> (const std::string \&tableName\_, const std::vector\< std::string > \&columnNames\_, const std::string \&variableColumnName\_, const std::string \&valueColumnName\_, const std::vector\< std::string > \&pivotedColumns\_, const std::map\< std::string, std::string > \&options\_)</td>
      </tr>

      <tr className="memdesc:a83221dc658cb5c4c2b2fcac1d4b91864">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs an <a className="el" href="/content/api/cpp/structgpudb_1_1AggregateUnpivotRequest" title="A set of parameters for GPUdb::aggregateUnpivot.">AggregateUnpivotRequest</a> object with the specified parameters. <br /></td>
      </tr>

      <tr className="separator:a83221dc658cb5c4c2b2fcac1d4b91864">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a59da1da989c733e534ab6c07d6d14448" id="r_a59da1da989c733e534ab6c07d6d14448">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a59da1da989c733e534ab6c07d6d14448">AggregateUnpivotRequest</a> (const std::string \&tableName\_, const std::vector\< std::string > \&columnNames\_, const std::string \&variableColumnName\_, const std::string \&valueColumnName\_, const std::vector\< std::string > \&pivotedColumns\_, const std::string \&encoding\_, const std::map\< std::string, std::string > \&options\_)</td>
      </tr>

      <tr className="memdesc:a59da1da989c733e534ab6c07d6d14448">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs an <a className="el" href="/content/api/cpp/structgpudb_1_1AggregateUnpivotRequest" title="A set of parameters for GPUdb::aggregateUnpivot.">AggregateUnpivotRequest</a> object with the specified parameters. <br /></td>
      </tr>

      <tr className="separator:a59da1da989c733e534ab6c07d6d14448">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Attributes</h2>
        </td>
      </tr>

      <tr className="memitem:a8ea9744872150cdda0b6424ba8b03ed7" id="r_a8ea9744872150cdda0b6424ba8b03ed7">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a8ea9744872150cdda0b6424ba8b03ed7">tableName</a></td>
      </tr>

      <tr className="memdesc:a8ea9744872150cdda0b6424ba8b03ed7">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Name of the table on which the operation will be performed. <br /></td>
      </tr>

      <tr className="separator:a8ea9744872150cdda0b6424ba8b03ed7">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a120f62dfc118ccd4e80b206977d0cfec" id="r_a120f62dfc118ccd4e80b206977d0cfec">
        <td className="memItemLeft" align="right" valign="top">std::vector\< std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a120f62dfc118ccd4e80b206977d0cfec">columnNames</a></td>
      </tr>

      <tr className="memdesc:a120f62dfc118ccd4e80b206977d0cfec">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">List of column names or expressions. <br /></td>
      </tr>

      <tr className="separator:a120f62dfc118ccd4e80b206977d0cfec">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:ace90efd6eac23dec03cfdcf6128be8ce" id="r_ace90efd6eac23dec03cfdcf6128be8ce">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#ace90efd6eac23dec03cfdcf6128be8ce">variableColumnName</a></td>
      </tr>

      <tr className="memdesc:ace90efd6eac23dec03cfdcf6128be8ce">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Specifies the variable/parameter column name. <br /></td>
      </tr>

      <tr className="separator:ace90efd6eac23dec03cfdcf6128be8ce">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a09af00bde7e544cffd4661b6ad5c8cf7" id="r_a09af00bde7e544cffd4661b6ad5c8cf7">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a09af00bde7e544cffd4661b6ad5c8cf7">valueColumnName</a></td>
      </tr>

      <tr className="memdesc:a09af00bde7e544cffd4661b6ad5c8cf7">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Specifies the value column name. <br /></td>
      </tr>

      <tr className="separator:a09af00bde7e544cffd4661b6ad5c8cf7">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a079f9c8225ed337fc62db8269cb51210" id="r_a079f9c8225ed337fc62db8269cb51210">
        <td className="memItemLeft" align="right" valign="top">std::vector\< std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a079f9c8225ed337fc62db8269cb51210">pivotedColumns</a></td>
      </tr>

      <tr className="memdesc:a079f9c8225ed337fc62db8269cb51210">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">List of one or more values typically the column names of the input table. <br /></td>
      </tr>

      <tr className="separator:a079f9c8225ed337fc62db8269cb51210">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a157d9471a80ac5358f5fc2be9f51c868" id="r_a157d9471a80ac5358f5fc2be9f51c868">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a157d9471a80ac5358f5fc2be9f51c868">encoding</a></td>
      </tr>

      <tr className="memdesc:a157d9471a80ac5358f5fc2be9f51c868">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Specifies the encoding for returned records. <br /></td>
      </tr>

      <tr className="separator:a157d9471a80ac5358f5fc2be9f51c868">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:abe44caf973f8ef2a497c5420be28c6cd" id="r_abe44caf973f8ef2a497c5420be28c6cd">
        <td className="memItemLeft" align="right" valign="top">std::map\< std::string, std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#abe44caf973f8ef2a497c5420be28c6cd">options</a></td>
      </tr>

      <tr className="memdesc:abe44caf973f8ef2a497c5420be28c6cd">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Optional parameters. <br /></td>
      </tr>

      <tr className="separator:abe44caf973f8ef2a497c5420be28c6cd">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <h2 className="groupheader">Detailed Description</h2>

    <div className="textblock">
      <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#abb9e5e7039f10b231076f29aa7a01f13">GPUdb::aggregateUnpivot</a>. </p>
      <p>Rotate the column values into rows values.</p>
      <p>For unpivot details and examples, see <a href="/content/concepts/unpivot/" target="_top">Unpivot</a>. For limitations, see <a href="/content/concepts/unpivot/#limitations" target="_top">Unpivot Limitations</a>.</p>
      <p>Unpivot is used to normalize tables that are built for cross tabular reporting purposes. The unpivot operator rotates the column values for all the pivoted columns. A variable column, value column and all columns from the source table except the unpivot columns are projected into the result table. The variable column and value columns in the result table indicate the pivoted column name and values respectively.</p>
      <p>The response is returned as a dynamic schema. For details see: <a href="/content/api/concepts/#dynamic-schemas" target="_top">dynamic schemas documentation</a>. </p>
      <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source#l00036">36</a> of file <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source">aggregate\_unpivot.h</a>.</p>
    </div>

    <h2 className="groupheader">Constructor & Destructor Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#ae8efc50c0409baf03eadfc908a485dd7">◆ </a></span>AggregateUnpivotRequest() <span className="overload">\[1/3]</span></h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::AggregateUnpivotRequest::AggregateUnpivotRequest </td>
                  <td>(</td>

                  <td className="paramname">
                    <span className="paramname">
                      <span className="em" />
                    </span>
                  </td>

                  <td>)</td>

                  <td />
                </tr>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs an <a className="el" href="/content/api/cpp/structgpudb_1_1AggregateUnpivotRequest" title="A set of parameters for GPUdb::aggregateUnpivot.">AggregateUnpivotRequest</a> object with default parameters. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source#l00042">42</a> of file <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source">aggregate\_unpivot.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a83221dc658cb5c4c2b2fcac1d4b91864">◆ </a></span>AggregateUnpivotRequest() <span className="overload">\[2/3]</span></h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::AggregateUnpivotRequest::AggregateUnpivotRequest </td>
                  <td>(</td>
                  <td className="paramtype">const std::string &</td>
                  <td className="paramname"><span className="paramname"><span className="em">tableName\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::vector\< std::string > &</td>
                  <td className="paramname"><span className="paramname"><span className="em">columnNames\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::string &</td>
                  <td className="paramname"><span className="paramname"><span className="em">variableColumnName\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::string &</td>
                  <td className="paramname"><span className="paramname"><span className="em">valueColumnName\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::vector\< std::string > &</td>
                  <td className="paramname"><span className="paramname"><span className="em">pivotedColumns\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::map\< std::string, std::string > &</td>
                  <td className="paramname"><span className="paramname"><span className="em">options\_</span></span> )</td>
                </tr>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs an <a className="el" href="/content/api/cpp/structgpudb_1_1AggregateUnpivotRequest" title="A set of parameters for GPUdb::aggregateUnpivot.">AggregateUnpivotRequest</a> object with the specified parameters. </p>

        <div className="dl params">
          <div className="dt">Parameters</div>

          <div className="dd">
            <table className="params">
              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">tableName\_</td>
                <td>Name of the table on which the operation will be performed. Must be an existing table/view, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a>. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">columnNames\_</td>
                <td>List of column names or expressions. A wildcard '\*' can be used to include all the non-pivoted columns from the source table. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">variableColumnName\_</td>
                <td>Specifies the variable/parameter column name. The default value is ''. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">valueColumnName\_</td>
                <td>Specifies the value column name. The default value is ''. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">pivotedColumns\_</td>
                <td>List of one or more values typically the column names of the input table. All the columns in the source table must have the same data type. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">options\_</td>

                <td>
                  Optional parameters.

                  <ul>
                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a2036bf8f1a4ffcadddddeac02a04bc1a">aggregate\_unpivot\_create\_temp\_table</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a33167760257feb5d179403462f3ae254">true</a>, a unique temporary table name will be generated in the sys\_temp schema and used in place of <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a>. If <a className="el" href="/content/api/cpp/namespacegpudb#adee083994f1ffeddf092c7cb1d4cf951">result\_table\_persist</a> is <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">false</a> (or unspecified), then this is always allowed even if the caller does not have permission to create tables. The generated name is returned in <a className="el" href="/content/api/cpp/namespacegpudb#a1438d7ecedcae6aa9bf9479f474c697f">qualified\_result\_table\_name</a>. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a33167760257feb5d179403462f3ae254">aggregate\_unpivot\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a>.
                    </li>

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a6f04037712699777d16c32ee4970aa63">aggregate\_unpivot\_collection\_name</a>: \[DEPRECATED–please specify the containing schema as part of <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> and use <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#a4aa5990ebebfab30b5961654f546cfd0">GPUdb::createSchema</a> to create the schema if non-existent] Name of a schema which is to contain the table specified in <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a>. If the schema is non-existent, it will be automatically created. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">aggregate\_unpivot\_result\_table</a>: The name of a table used to store the results, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a> and meeting <a href="/content/concepts/tables/#table-naming-criteria" target="_top">table naming criteria</a>. If present, no results are returned in the response. </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#adee083994f1ffeddf092c7cb1d4cf951">aggregate\_unpivot\_result\_table\_persist</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a33167760257feb5d179403462f3ae254">true</a>, then the result table specified in <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> will be persisted and will not expire unless a <a className="el" href="/content/api/cpp/namespacegpudb#a0c375406608938d35ce6250306b47635">ttl</a> is specified. If <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">false</a>, then the result table will be an in-memory table and will expire unless a <a className="el" href="/content/api/cpp/namespacegpudb#a0c375406608938d35ce6250306b47635">ttl</a> is specified otherwise. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a33167760257feb5d179403462f3ae254">aggregate\_unpivot\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a>.
                    </li>

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a498ee2118f20a8fbbab465782086a2f1">aggregate\_unpivot\_expression</a>: Filter expression to apply to the table prior to unpivot processing. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a337de7431bbf0e74372f0b534adde685">aggregate\_unpivot\_order\_by</a>: Comma-separated list of the columns to be sorted by; e.g. 'timestamp asc, x desc'. The columns specified must be present in input table. If any alias is given for any column name, the alias must be used, rather than the original column name. The default value is ''. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#acb6790d339de47ea7409b225e5101a6b">aggregate\_unpivot\_chunk\_size</a>: Indicates the number of records per chunk to be used for the result table. Must be used in combination with the <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> option. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#aefa72e874c4d54373d570e974587ac8a">aggregate\_unpivot\_chunk\_column\_max\_memory</a>: Indicates the target maximum data size for each column in a chunk to be used for the result table. Must be used in combination with the <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> option. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a8d4045fa5de1e02c5bdce48da1e9a7eb">aggregate\_unpivot\_chunk\_max\_memory</a>: Indicates the target maximum data size for all columns in a chunk to be used for the result table. Must be used in combination with the <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> option. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a5a4adc837fd9ad3da04aa2f13fcccaf0">aggregate\_unpivot\_compression\_codec</a>: The default <a href="/content/concepts/column_compression/" target="_top">compression codec</a> for the result table's columns. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad620c09d7215ea88cc1599699376274c">aggregate\_unpivot\_limit</a>: The number of records to keep. The default value is ''. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0c375406608938d35ce6250306b47635">aggregate\_unpivot\_ttl</a>: Sets the <a href="/content/concepts/ttl/" target="_top">TTL</a> of the table specified in <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a>. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a411eff5faa3bfdfb9bc9b529d4af7fbd">aggregate\_unpivot\_view\_id</a>: View this result table is part of. The default value is ''. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a653d0f030e3d8bbab9fee5024170abe9">aggregate\_unpivot\_create\_indexes</a>: Comma-separated list of columns on which to create indexes on the table specified in <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a>. The columns specified must be present in output column names. If any alias is given for any column name, the alias must be used, rather than the original column name. </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a539c77b9d83b3d45c151d98bf08058e9">aggregate\_unpivot\_result\_table\_force\_replicated</a>: Force the result table to be replicated (ignores any sharding). Must be used in combination with the <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> option. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a33167760257feb5d179403462f3ae254">aggregate\_unpivot\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a>.
                    </li>
                  </ul>

                  The default value is an empty map.
                </td>
              </tr>
            </table>
          </div>
        </div>

        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source#l00262">262</a> of file <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source">aggregate\_unpivot.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a59da1da989c733e534ab6c07d6d14448">◆ </a></span>AggregateUnpivotRequest() <span className="overload">\[3/3]</span></h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::AggregateUnpivotRequest::AggregateUnpivotRequest </td>
                  <td>(</td>
                  <td className="paramtype">const std::string &</td>
                  <td className="paramname"><span className="paramname"><span className="em">tableName\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::vector\< std::string > &</td>
                  <td className="paramname"><span className="paramname"><span className="em">columnNames\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::string &</td>
                  <td className="paramname"><span className="paramname"><span className="em">variableColumnName\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::string &</td>
                  <td className="paramname"><span className="paramname"><span className="em">valueColumnName\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::vector\< std::string > &</td>
                  <td className="paramname"><span className="paramname"><span className="em">pivotedColumns\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::string &</td>
                  <td className="paramname"><span className="paramname"><span className="em">encoding\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::map\< std::string, std::string > &</td>
                  <td className="paramname"><span className="paramname"><span className="em">options\_</span></span> )</td>
                </tr>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs an <a className="el" href="/content/api/cpp/structgpudb_1_1AggregateUnpivotRequest" title="A set of parameters for GPUdb::aggregateUnpivot.">AggregateUnpivotRequest</a> object with the specified parameters. </p>

        <div className="dl params">
          <div className="dt">Parameters</div>

          <div className="dd">
            <table className="params">
              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">tableName\_</td>
                <td>Name of the table on which the operation will be performed. Must be an existing table/view, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a>. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">columnNames\_</td>
                <td>List of column names or expressions. A wildcard '\*' can be used to include all the non-pivoted columns from the source table. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">variableColumnName\_</td>
                <td>Specifies the variable/parameter column name. The default value is ''. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">valueColumnName\_</td>
                <td>Specifies the value column name. The default value is ''. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">pivotedColumns\_</td>
                <td>List of one or more values typically the column names of the input table. All the columns in the source table must have the same data type. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">encoding\_</td>

                <td>
                  Specifies the encoding for returned records. Supported values:

                  <ul>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#af4654550ab06785ca9e380d10255479e">aggregate\_unpivot\_binary</a>: Indicates that the returned records should be binary encoded. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad67d1cafb514f95ca7cd964f25c4bf73">aggregate\_unpivot\_json</a>: Indicates that the returned records should be JSON-encoded. </li>
                  </ul>

                  The default value is <a className="el" href="/content/api/cpp/namespacegpudb#af4654550ab06785ca9e380d10255479e">aggregate\_unpivot\_binary</a>.
                </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">options\_</td>

                <td>
                  Optional parameters.

                  <ul>
                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a2036bf8f1a4ffcadddddeac02a04bc1a">aggregate\_unpivot\_create\_temp\_table</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a33167760257feb5d179403462f3ae254">true</a>, a unique temporary table name will be generated in the sys\_temp schema and used in place of <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a>. If <a className="el" href="/content/api/cpp/namespacegpudb#adee083994f1ffeddf092c7cb1d4cf951">result\_table\_persist</a> is <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">false</a> (or unspecified), then this is always allowed even if the caller does not have permission to create tables. The generated name is returned in <a className="el" href="/content/api/cpp/namespacegpudb#a1438d7ecedcae6aa9bf9479f474c697f">qualified\_result\_table\_name</a>. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a33167760257feb5d179403462f3ae254">aggregate\_unpivot\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a>.
                    </li>

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a6f04037712699777d16c32ee4970aa63">aggregate\_unpivot\_collection\_name</a>: \[DEPRECATED–please specify the containing schema as part of <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> and use <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#a4aa5990ebebfab30b5961654f546cfd0">GPUdb::createSchema</a> to create the schema if non-existent] Name of a schema which is to contain the table specified in <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a>. If the schema is non-existent, it will be automatically created. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">aggregate\_unpivot\_result\_table</a>: The name of a table used to store the results, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a> and meeting <a href="/content/concepts/tables/#table-naming-criteria" target="_top">table naming criteria</a>. If present, no results are returned in the response. </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#adee083994f1ffeddf092c7cb1d4cf951">aggregate\_unpivot\_result\_table\_persist</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a33167760257feb5d179403462f3ae254">true</a>, then the result table specified in <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> will be persisted and will not expire unless a <a className="el" href="/content/api/cpp/namespacegpudb#a0c375406608938d35ce6250306b47635">ttl</a> is specified. If <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">false</a>, then the result table will be an in-memory table and will expire unless a <a className="el" href="/content/api/cpp/namespacegpudb#a0c375406608938d35ce6250306b47635">ttl</a> is specified otherwise. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a33167760257feb5d179403462f3ae254">aggregate\_unpivot\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a>.
                    </li>

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a498ee2118f20a8fbbab465782086a2f1">aggregate\_unpivot\_expression</a>: Filter expression to apply to the table prior to unpivot processing. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a337de7431bbf0e74372f0b534adde685">aggregate\_unpivot\_order\_by</a>: Comma-separated list of the columns to be sorted by; e.g. 'timestamp asc, x desc'. The columns specified must be present in input table. If any alias is given for any column name, the alias must be used, rather than the original column name. The default value is ''. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#acb6790d339de47ea7409b225e5101a6b">aggregate\_unpivot\_chunk\_size</a>: Indicates the number of records per chunk to be used for the result table. Must be used in combination with the <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> option. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#aefa72e874c4d54373d570e974587ac8a">aggregate\_unpivot\_chunk\_column\_max\_memory</a>: Indicates the target maximum data size for each column in a chunk to be used for the result table. Must be used in combination with the <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> option. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a8d4045fa5de1e02c5bdce48da1e9a7eb">aggregate\_unpivot\_chunk\_max\_memory</a>: Indicates the target maximum data size for all columns in a chunk to be used for the result table. Must be used in combination with the <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> option. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a5a4adc837fd9ad3da04aa2f13fcccaf0">aggregate\_unpivot\_compression\_codec</a>: The default <a href="/content/concepts/column_compression/" target="_top">compression codec</a> for the result table's columns. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad620c09d7215ea88cc1599699376274c">aggregate\_unpivot\_limit</a>: The number of records to keep. The default value is ''. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0c375406608938d35ce6250306b47635">aggregate\_unpivot\_ttl</a>: Sets the <a href="/content/concepts/ttl/" target="_top">TTL</a> of the table specified in <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a>. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a411eff5faa3bfdfb9bc9b529d4af7fbd">aggregate\_unpivot\_view\_id</a>: View this result table is part of. The default value is ''. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a653d0f030e3d8bbab9fee5024170abe9">aggregate\_unpivot\_create\_indexes</a>: Comma-separated list of columns on which to create indexes on the table specified in <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a>. The columns specified must be present in output column names. If any alias is given for any column name, the alias must be used, rather than the original column name. </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a539c77b9d83b3d45c151d98bf08058e9">aggregate\_unpivot\_result\_table\_force\_replicated</a>: Force the result table to be replicated (ignores any sharding). Must be used in combination with the <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> option. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a33167760257feb5d179403462f3ae254">aggregate\_unpivot\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a>.
                    </li>
                  </ul>

                  The default value is an empty map.
                </td>
              </tr>
            </table>
          </div>
        </div>

        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source#l00497">497</a> of file <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source">aggregate\_unpivot.h</a>.</p>
      </div>
    </div>

    <h2 className="groupheader">Member Data Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#a120f62dfc118ccd4e80b206977d0cfec">◆ </a></span>columnNames</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::vector\<std::string> gpudb::AggregateUnpivotRequest::columnNames</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>List of column names or expressions. </p>
        <p>A wildcard '\*' can be used to include all the non-pivoted columns from the source table. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source#l00520">520</a> of file <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source">aggregate\_unpivot.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a157d9471a80ac5358f5fc2be9f51c868">◆ </a></span>encoding</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::AggregateUnpivotRequest::encoding</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Specifies the encoding for returned records. </p>
        <p>Supported values: </p>

        <ul>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#af4654550ab06785ca9e380d10255479e">aggregate\_unpivot\_binary</a>: Indicates that the returned records should be binary encoded. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad67d1cafb514f95ca7cd964f25c4bf73">aggregate\_unpivot\_json</a>: Indicates that the returned records should be JSON-encoded. </li>
        </ul>

        <p>The default value is <a className="el" href="/content/api/cpp/namespacegpudb#af4654550ab06785ca9e380d10255479e">aggregate\_unpivot\_binary</a>. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source#l00553">553</a> of file <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source">aggregate\_unpivot.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#abe44caf973f8ef2a497c5420be28c6cd">◆ </a></span>options</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::map\<std::string, std::string> gpudb::AggregateUnpivotRequest::options</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Optional parameters. </p>

        <ul>
          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a2036bf8f1a4ffcadddddeac02a04bc1a">aggregate\_unpivot\_create\_temp\_table</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a33167760257feb5d179403462f3ae254">true</a>, a unique temporary table name will be generated in the sys\_temp schema and used in place of <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a>. If <a className="el" href="/content/api/cpp/namespacegpudb#adee083994f1ffeddf092c7cb1d4cf951">result\_table\_persist</a> is <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">false</a> (or unspecified), then this is always allowed even if the caller does not have permission to create tables. The generated name is returned in <a className="el" href="/content/api/cpp/namespacegpudb#a1438d7ecedcae6aa9bf9479f474c697f">qualified\_result\_table\_name</a>. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a33167760257feb5d179403462f3ae254">aggregate\_unpivot\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a> </li>
            </ul>

            The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a>.
          </li>

          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a6f04037712699777d16c32ee4970aa63">aggregate\_unpivot\_collection\_name</a>: \[DEPRECATED–please specify the containing schema as part of <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> and use <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#a4aa5990ebebfab30b5961654f546cfd0">GPUdb::createSchema</a> to create the schema if non-existent] Name of a schema which is to contain the table specified in <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a>. If the schema is non-existent, it will be automatically created. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">aggregate\_unpivot\_result\_table</a>: The name of a table used to store the results, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a> and meeting <a href="/content/concepts/tables/#table-naming-criteria" target="_top">table naming criteria</a>. If present, no results are returned in the response. </li>

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#adee083994f1ffeddf092c7cb1d4cf951">aggregate\_unpivot\_result\_table\_persist</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a33167760257feb5d179403462f3ae254">true</a>, then the result table specified in <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> will be persisted and will not expire unless a <a className="el" href="/content/api/cpp/namespacegpudb#a0c375406608938d35ce6250306b47635">ttl</a> is specified. If <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">false</a>, then the result table will be an in-memory table and will expire unless a <a className="el" href="/content/api/cpp/namespacegpudb#a0c375406608938d35ce6250306b47635">ttl</a> is specified otherwise. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a33167760257feb5d179403462f3ae254">aggregate\_unpivot\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a> </li>
            </ul>

            The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a>.
          </li>

          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a498ee2118f20a8fbbab465782086a2f1">aggregate\_unpivot\_expression</a>: Filter expression to apply to the table prior to unpivot processing. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a337de7431bbf0e74372f0b534adde685">aggregate\_unpivot\_order\_by</a>: Comma-separated list of the columns to be sorted by; e.g. 'timestamp asc, x desc'. The columns specified must be present in input table. If any alias is given for any column name, the alias must be used, rather than the original column name. The default value is ''. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#acb6790d339de47ea7409b225e5101a6b">aggregate\_unpivot\_chunk\_size</a>: Indicates the number of records per chunk to be used for the result table. Must be used in combination with the <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> option. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#aefa72e874c4d54373d570e974587ac8a">aggregate\_unpivot\_chunk\_column\_max\_memory</a>: Indicates the target maximum data size for each column in a chunk to be used for the result table. Must be used in combination with the <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> option. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a8d4045fa5de1e02c5bdce48da1e9a7eb">aggregate\_unpivot\_chunk\_max\_memory</a>: Indicates the target maximum data size for all columns in a chunk to be used for the result table. Must be used in combination with the <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> option. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a5a4adc837fd9ad3da04aa2f13fcccaf0">aggregate\_unpivot\_compression\_codec</a>: The default <a href="/content/concepts/column_compression/" target="_top">compression codec</a> for the result table's columns. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad620c09d7215ea88cc1599699376274c">aggregate\_unpivot\_limit</a>: The number of records to keep. The default value is ''. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0c375406608938d35ce6250306b47635">aggregate\_unpivot\_ttl</a>: Sets the <a href="/content/concepts/ttl/" target="_top">TTL</a> of the table specified in <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a>. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a411eff5faa3bfdfb9bc9b529d4af7fbd">aggregate\_unpivot\_view\_id</a>: View this result table is part of. The default value is ''. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a653d0f030e3d8bbab9fee5024170abe9">aggregate\_unpivot\_create\_indexes</a>: Comma-separated list of columns on which to create indexes on the table specified in <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a>. The columns specified must be present in output column names. If any alias is given for any column name, the alias must be used, rather than the original column name. </li>

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a539c77b9d83b3d45c151d98bf08058e9">aggregate\_unpivot\_result\_table\_force\_replicated</a>: Force the result table to be replicated (ignores any sharding). Must be used in combination with the <a className="el" href="/content/api/cpp/namespacegpudb#a387e724aa5d35a6e0adca724661df1e1">result\_table</a> option. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a33167760257feb5d179403462f3ae254">aggregate\_unpivot\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a> </li>
            </ul>

            The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a0c9aac1cb76ab97b113672060d6b2878">aggregate\_unpivot\_false</a>.
          </li>
        </ul>

        <p>The default value is an empty map. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source#l00683">683</a> of file <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source">aggregate\_unpivot.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a079f9c8225ed337fc62db8269cb51210">◆ </a></span>pivotedColumns</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::vector\<std::string> gpudb::AggregateUnpivotRequest::pivotedColumns</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>List of one or more values typically the column names of the input table. </p>
        <p>All the columns in the source table must have the same data type. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source#l00538">538</a> of file <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source">aggregate\_unpivot.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a8ea9744872150cdda0b6424ba8b03ed7">◆ </a></span>tableName</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::AggregateUnpivotRequest::tableName</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Name of the table on which the operation will be performed. </p>
        <p>Must be an existing table/view, in \[ schema\_name. ]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a>. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source#l00514">514</a> of file <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source">aggregate\_unpivot.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a09af00bde7e544cffd4661b6ad5c8cf7">◆ </a></span>valueColumnName</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::AggregateUnpivotRequest::valueColumnName</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Specifies the value column name. </p>
        <p>The default value is ''. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source#l00531">531</a> of file <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source">aggregate\_unpivot.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#ace90efd6eac23dec03cfdcf6128be8ce">◆ </a></span>variableColumnName</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::AggregateUnpivotRequest::variableColumnName</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Specifies the variable/parameter column name. </p>
        <p>The default value is ''. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source#l00526">526</a> of file <a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source">aggregate\_unpivot.h</a>.</p>
      </div>
    </div>

    <hr />

    The documentation for this struct was generated from the following file:

    <ul>
      <li>gpudb/protocol/<a className="el" href="/content/api/cpp/aggregate__unpivot_8h_source">aggregate\_unpivot.h</a></li>
    </ul>
  </div>
</div>
