> ## 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::AggregateUniqueRequest

> gpudb::AggregateUniqueRequest — 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#a19a392ef8588ef5bef4b650a2b7a99ba">GPUdb::aggregateUnique</a>. <a href="#details">More...</a></p>
    <p><code>#include \<<a className="el" href="/content/api/cpp/aggregate__unique_8h_source">gpudb/protocol/aggregate\_unique.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:aaa0f78a6e928afd1a0ce1e9b0e0a4698" id="r_aaa0f78a6e928afd1a0ce1e9b0e0a4698">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#aaa0f78a6e928afd1a0ce1e9b0e0a4698">AggregateUniqueRequest</a> ()</td>
      </tr>

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

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

      <tr className="memitem:ab208545fbd739c3bb3dda3bc8e4c7534" id="r_ab208545fbd739c3bb3dda3bc8e4c7534">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#ab208545fbd739c3bb3dda3bc8e4c7534">AggregateUniqueRequest</a> (const std::string \&tableName\_, const std::string \&columnName\_, const int64\_t offset\_, const int64\_t limit\_, const std::map\< std::string, std::string > \&options\_)</td>
      </tr>

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

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

      <tr className="memitem:af4bd92872d8494760544c84688d51849" id="r_af4bd92872d8494760544c84688d51849">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#af4bd92872d8494760544c84688d51849">AggregateUniqueRequest</a> (const std::string \&tableName\_, const std::string \&columnName\_, const int64\_t offset\_, const int64\_t limit\_, const std::string \&encoding\_, const std::map\< std::string, std::string > \&options\_)</td>
      </tr>

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

      <tr className="separator:af4bd92872d8494760544c84688d51849">
        <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:a328a501af128cf4c6a0e48b705d98360" id="r_a328a501af128cf4c6a0e48b705d98360">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a328a501af128cf4c6a0e48b705d98360">tableName</a></td>
      </tr>

      <tr className="memdesc:a328a501af128cf4c6a0e48b705d98360">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Name of an existing table or view on which the operation will be performed, in \[ schema\_name. ]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a>. <br /></td>
      </tr>

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

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

      <tr className="memdesc:a3fdc4b7bccd3b9fcd14ab1b45b6c3cb0">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Name of the column or an expression containing one or more column names on which the unique function would be applied. <br /></td>
      </tr>

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

      <tr className="memitem:a72dcacc3c10af128eee98e0724464411" id="r_a72dcacc3c10af128eee98e0724464411">
        <td className="memItemLeft" align="right" valign="top">int64\_t </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a72dcacc3c10af128eee98e0724464411">offset</a></td>
      </tr>

      <tr className="memdesc:a72dcacc3c10af128eee98e0724464411">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). <br /></td>
      </tr>

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

      <tr className="memitem:af8df24843fa865129e3b50f8a6f80731" id="r_af8df24843fa865129e3b50f8a6f80731">
        <td className="memItemLeft" align="right" valign="top">int64\_t </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#af8df24843fa865129e3b50f8a6f80731">limit</a></td>
      </tr>

      <tr className="memdesc:af8df24843fa865129e3b50f8a6f80731">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. <br /></td>
      </tr>

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

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

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

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

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

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

      <tr className="separator:aa30473089a64cd808f10f6def803571f">
        <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#a19a392ef8588ef5bef4b650a2b7a99ba">GPUdb::aggregateUnique</a>. </p>
      <p>Returns all the unique values from a particular column (specified by <a className="el" href="#a3fdc4b7bccd3b9fcd14ab1b45b6c3cb0">columnName</a>) of a particular table or view (specified by <a className="el" href="#a328a501af128cf4c6a0e48b705d98360">tableName</a>). If <a className="el" href="#a3fdc4b7bccd3b9fcd14ab1b45b6c3cb0">columnName</a> is a numeric column, the values will be in <a className="el" href="/content/api/cpp/structgpudb_1_1RawAggregateUniqueResponse#aa6cc3a59af6a4b6a9deccc913a3ac38b">binaryEncodedResponse</a>. Otherwise if <a className="el" href="#a3fdc4b7bccd3b9fcd14ab1b45b6c3cb0">columnName</a> is a string column, the values will be in <a className="el" href="/content/api/cpp/structgpudb_1_1RawAggregateUniqueResponse#ac2d8e9ebc9d9fcd530f9b6cc84555890">jsonEncodedResponse</a>. The results can be paged via <a className="el" href="#a72dcacc3c10af128eee98e0724464411">offset</a> and <a className="el" href="#af8df24843fa865129e3b50f8a6f80731">limit</a> parameters.</p>
      <p>{"{"}"limit":"10","sort\_order":"descending"{"}"}</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>If a <a className="el" href="/content/api/cpp/namespacegpudb#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> name is specified in the <a className="el" href="#aa30473089a64cd808f10f6def803571f">options</a>, the results are stored in a new table with that name–no results are returned in the response. Both the table name and resulting column name must adhere to <a href="/content/concepts/tables/#table" target="_top">standard naming conventions</a>; any column expression will need to be aliased. If the source table's <a href="/content/concepts/tables/#shard-keys" target="_top">shard key</a> is used as the <a className="el" href="#a3fdc4b7bccd3b9fcd14ab1b45b6c3cb0">columnName</a>, the result table will be sharded, in all other cases it will be replicated. Sorting will properly function only if the result table is replicated or if there is only one processing node and should not be relied upon in other cases. Not available if the value of <a className="el" href="#a3fdc4b7bccd3b9fcd14ab1b45b6c3cb0">columnName</a> is an unrestricted-length string. </p>
      <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unique_8h_source#l00049">49</a> of file <a className="el" href="/content/api/cpp/aggregate__unique_8h_source">aggregate\_unique.h</a>.</p>
    </div>

    <h2 className="groupheader">Constructor & Destructor Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#aaa0f78a6e928afd1a0ce1e9b0e0a4698">◆ </a></span>AggregateUniqueRequest() <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::AggregateUniqueRequest::AggregateUniqueRequest </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_1AggregateUniqueRequest" title="A set of parameters for GPUdb::aggregateUnique.">AggregateUniqueRequest</a> object with default parameters. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unique_8h_source#l00054">54</a> of file <a className="el" href="/content/api/cpp/aggregate__unique_8h_source">aggregate\_unique.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#ab208545fbd739c3bb3dda3bc8e4c7534">◆ </a></span>AggregateUniqueRequest() <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::AggregateUniqueRequest::AggregateUniqueRequest </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::string &</td>
                  <td className="paramname"><span className="paramname"><span className="em">columnName\_</span></span>, </td>
                </tr>

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

                  <td />

                  <td className="paramtype">const int64\_t</td>
                  <td className="paramname"><span className="paramname"><span className="em">offset\_</span></span>, </td>
                </tr>

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

                  <td />

                  <td className="paramtype">const int64\_t</td>
                  <td className="paramname"><span className="paramname"><span className="em">limit\_</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_1AggregateUniqueRequest" title="A set of parameters for GPUdb::aggregateUnique.">AggregateUniqueRequest</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 an existing table or view on which the operation will be performed, 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">columnName\_</td>
                <td>Name of the column or an expression containing one or more column names on which the unique function would be applied. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">offset\_</td>
                <td>A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">limit\_</td>
                <td>A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server's own limit, defined by the <a href="/content/config/#config-main-general" target="_top">max\_get\_records\_size</a> parameter in the server configuration. Use <a className="el" href="/content/api/cpp/structgpudb_1_1RawAggregateUniqueResponse#a92a4b2c3978f7be8a5464939a0749cce">hasMoreRecords</a> to see if more records exist in the result to be fetched, and <span className="em arg">offset\_</span> and <span className="em arg">limit\_</span> to request subsequent pages of results. The default value is -9999. </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#a77ae199f38df61e6dde8d89b93ecc936">aggregate\_unique\_create\_temp\_table</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a>. If <a className="el" href="/content/api/cpp/namespacegpudb#ade4c9fcafefc10a54ab23558c1900f8d">result\_table\_persist</a> is <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">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#a8321609fc27d60dfac001c3f95b47833">qualified\_result\_table\_name</a>. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">aggregate\_unique\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">aggregate\_unique\_false</a> </li>
                      </ul>

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

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#acd236cab9fe7d1fe7084335013d751cf">aggregate\_unique\_collection\_name</a>: \[DEPRECATED–please specify the containing schema as part of <a className="el" href="/content/api/cpp/namespacegpudb#aa237f688a5ba22fc86ae0b3e6c521060">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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a>. If the schema provided is non-existent, it will be automatically created. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#af35b92a0588fa81c24dcf16208d822c8">aggregate\_unique\_expression</a>: Filter expression to apply to the table. </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a05bb58bc3e1dcf84975fe26bd07f0436">aggregate\_unique\_sort\_order</a>: String indicating how the returned values should be sorted. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#afb2a58270ae4341a0d5812c584a2f674">aggregate\_unique\_ascending</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad88048ed2c450445a0069a1d85b48faa">aggregate\_unique\_descending</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#afb2a58270ae4341a0d5812c584a2f674">aggregate\_unique\_ascending</a>.
                    </li>

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2a78a0aa14ebf04309bc96df3739aa27">aggregate\_unique\_order\_by</a>: Comma-separated list of the columns to be sorted by as well as the sort direction, e.g., 'timestamp asc, x desc'. The default value is ''. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#aa237f688a5ba22fc86ae0b3e6c521060">aggregate\_unique\_result\_table</a>: The name of the 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. Not available if <span className="em arg">columnName\_</span> is an unrestricted-length string. </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#ade4c9fcafefc10a54ab23558c1900f8d">aggregate\_unique\_result\_table\_persist</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">true</a>, then the result table specified in <a className="el" href="/content/api/cpp/namespacegpudb#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> will be persisted and will not expire unless a <a className="el" href="/content/api/cpp/namespacegpudb#a28e49f5596045f1ebdc340d2fb1a05e3">ttl</a> is specified. If <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">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#a28e49f5596045f1ebdc340d2fb1a05e3">ttl</a> is specified otherwise. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">aggregate\_unique\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">aggregate\_unique\_false</a> </li>
                      </ul>

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

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a383842d62bb6a43ea568c92f5d573e57">aggregate\_unique\_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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> option. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">aggregate\_unique\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">aggregate\_unique\_false</a> </li>
                      </ul>

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

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#ade359b9173c6c1a7010fcd6c176cb7ba">aggregate\_unique\_result\_table\_generate\_pk</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">true</a> then set a primary key for the result table. Must be used in combination with the <a className="el" href="/content/api/cpp/namespacegpudb#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> option. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">aggregate\_unique\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">aggregate\_unique\_false</a> </li>
                      </ul>

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

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a28e49f5596045f1ebdc340d2fb1a05e3">aggregate\_unique\_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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a>. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#af51d44b139b7d778beeaa3286367659d">aggregate\_unique\_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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> option. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a548924decb1fccf1698abc8d60edb330">aggregate\_unique\_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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> option. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a89580bb1a1408953bf5c4f54e9911bae">aggregate\_unique\_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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> option. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a5670309522a62cfc3429eb0342ccf987">aggregate\_unique\_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#aaa96a6401e834f845c3d7fe6e5fcb532">aggregate\_unique\_view\_id</a>: ID of view of which the result table will be a member. The default value is ''. </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__unique_8h_source#l00300">300</a> of file <a className="el" href="/content/api/cpp/aggregate__unique_8h_source">aggregate\_unique.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#af4bd92872d8494760544c84688d51849">◆ </a></span>AggregateUniqueRequest() <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::AggregateUniqueRequest::AggregateUniqueRequest </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::string &</td>
                  <td className="paramname"><span className="paramname"><span className="em">columnName\_</span></span>, </td>
                </tr>

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

                  <td />

                  <td className="paramtype">const int64\_t</td>
                  <td className="paramname"><span className="paramname"><span className="em">offset\_</span></span>, </td>
                </tr>

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

                  <td />

                  <td className="paramtype">const int64\_t</td>
                  <td className="paramname"><span className="paramname"><span className="em">limit\_</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_1AggregateUniqueRequest" title="A set of parameters for GPUdb::aggregateUnique.">AggregateUniqueRequest</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 an existing table or view on which the operation will be performed, 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">columnName\_</td>
                <td>Name of the column or an expression containing one or more column names on which the unique function would be applied. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">offset\_</td>
                <td>A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">limit\_</td>
                <td>A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server's own limit, defined by the <a href="/content/config/#config-main-general" target="_top">max\_get\_records\_size</a> parameter in the server configuration. Use <a className="el" href="/content/api/cpp/structgpudb_1_1RawAggregateUniqueResponse#a92a4b2c3978f7be8a5464939a0749cce">hasMoreRecords</a> to see if more records exist in the result to be fetched, and <span className="em arg">offset\_</span> and <span className="em arg">limit\_</span> to request subsequent pages of results. The default value is -9999. </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#ab30aa0b5b7fcfb4ef0dee5763ad04d6f">aggregate\_unique\_binary</a>: Indicates that the returned records should be binary encoded. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0357f401cff0d1771353d6d592cb7c57">aggregate\_unique\_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#ab30aa0b5b7fcfb4ef0dee5763ad04d6f">aggregate\_unique\_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#a77ae199f38df61e6dde8d89b93ecc936">aggregate\_unique\_create\_temp\_table</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a>. If <a className="el" href="/content/api/cpp/namespacegpudb#ade4c9fcafefc10a54ab23558c1900f8d">result\_table\_persist</a> is <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">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#a8321609fc27d60dfac001c3f95b47833">qualified\_result\_table\_name</a>. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">aggregate\_unique\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">aggregate\_unique\_false</a> </li>
                      </ul>

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

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#acd236cab9fe7d1fe7084335013d751cf">aggregate\_unique\_collection\_name</a>: \[DEPRECATED–please specify the containing schema as part of <a className="el" href="/content/api/cpp/namespacegpudb#aa237f688a5ba22fc86ae0b3e6c521060">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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a>. If the schema provided is non-existent, it will be automatically created. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#af35b92a0588fa81c24dcf16208d822c8">aggregate\_unique\_expression</a>: Filter expression to apply to the table. </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a05bb58bc3e1dcf84975fe26bd07f0436">aggregate\_unique\_sort\_order</a>: String indicating how the returned values should be sorted. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#afb2a58270ae4341a0d5812c584a2f674">aggregate\_unique\_ascending</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad88048ed2c450445a0069a1d85b48faa">aggregate\_unique\_descending</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#afb2a58270ae4341a0d5812c584a2f674">aggregate\_unique\_ascending</a>.
                    </li>

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2a78a0aa14ebf04309bc96df3739aa27">aggregate\_unique\_order\_by</a>: Comma-separated list of the columns to be sorted by as well as the sort direction, e.g., 'timestamp asc, x desc'. The default value is ''. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#aa237f688a5ba22fc86ae0b3e6c521060">aggregate\_unique\_result\_table</a>: The name of the 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. Not available if <span className="em arg">columnName\_</span> is an unrestricted-length string. </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#ade4c9fcafefc10a54ab23558c1900f8d">aggregate\_unique\_result\_table\_persist</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">true</a>, then the result table specified in <a className="el" href="/content/api/cpp/namespacegpudb#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> will be persisted and will not expire unless a <a className="el" href="/content/api/cpp/namespacegpudb#a28e49f5596045f1ebdc340d2fb1a05e3">ttl</a> is specified. If <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">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#a28e49f5596045f1ebdc340d2fb1a05e3">ttl</a> is specified otherwise. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">aggregate\_unique\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">aggregate\_unique\_false</a> </li>
                      </ul>

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

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a383842d62bb6a43ea568c92f5d573e57">aggregate\_unique\_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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> option. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">aggregate\_unique\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">aggregate\_unique\_false</a> </li>
                      </ul>

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

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#ade359b9173c6c1a7010fcd6c176cb7ba">aggregate\_unique\_result\_table\_generate\_pk</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">true</a> then set a primary key for the result table. Must be used in combination with the <a className="el" href="/content/api/cpp/namespacegpudb#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> option. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">aggregate\_unique\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">aggregate\_unique\_false</a> </li>
                      </ul>

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

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a28e49f5596045f1ebdc340d2fb1a05e3">aggregate\_unique\_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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a>. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#af51d44b139b7d778beeaa3286367659d">aggregate\_unique\_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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> option. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a548924decb1fccf1698abc8d60edb330">aggregate\_unique\_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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> option. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a89580bb1a1408953bf5c4f54e9911bae">aggregate\_unique\_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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> option. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a5670309522a62cfc3429eb0342ccf987">aggregate\_unique\_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#aaa96a6401e834f845c3d7fe6e5fcb532">aggregate\_unique\_view\_id</a>: ID of view of which the result table will be a member. The default value is ''. </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__unique_8h_source#l00561">561</a> of file <a className="el" href="/content/api/cpp/aggregate__unique_8h_source">aggregate\_unique.h</a>.</p>
      </div>
    </div>

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

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

      <div className="memdoc">
        <p>Name of the column or an expression containing one or more column names on which the unique function would be applied. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unique_8h_source#l00583">583</a> of file <a className="el" href="/content/api/cpp/aggregate__unique_8h_source">aggregate\_unique.h</a>.</p>
      </div>
    </div>

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

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::AggregateUniqueRequest::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#ab30aa0b5b7fcfb4ef0dee5763ad04d6f">aggregate\_unique\_binary</a>: Indicates that the returned records should be binary encoded. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0357f401cff0d1771353d6d592cb7c57">aggregate\_unique\_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#ab30aa0b5b7fcfb4ef0dee5763ad04d6f">aggregate\_unique\_binary</a>. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unique_8h_source#l00621">621</a> of file <a className="el" href="/content/api/cpp/aggregate__unique_8h_source">aggregate\_unique.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#af8df24843fa865129e3b50f8a6f80731">◆ </a></span>limit</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">int64\_t gpudb::AggregateUniqueRequest::limit</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>A positive integer indicating the maximum number of results to be returned, or END\_OF\_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. </p>
        <p>The number of records returned will never exceed the server's own limit, defined by the <a href="/content/config/#config-main-general" target="_top">max\_get\_records\_size</a> parameter in the server configuration. Use <a className="el" href="/content/api/cpp/structgpudb_1_1RawAggregateUniqueResponse#a92a4b2c3978f7be8a5464939a0749cce">hasMoreRecords</a> to see if more records exist in the result to be fetched, and <a className="el" href="#a72dcacc3c10af128eee98e0724464411">offset</a> and <a className="el" href="#af8df24843fa865129e3b50f8a6f80731">limit</a> to request subsequent pages of results. The default value is -9999. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unique_8h_source#l00606">606</a> of file <a className="el" href="/content/api/cpp/aggregate__unique_8h_source">aggregate\_unique.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a72dcacc3c10af128eee98e0724464411">◆ </a></span>offset</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">int64\_t gpudb::AggregateUniqueRequest::offset</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). </p>
        <p>The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX\_INT. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/aggregate__unique_8h_source#l00591">591</a> of file <a className="el" href="/content/api/cpp/aggregate__unique_8h_source">aggregate\_unique.h</a>.</p>
      </div>
    </div>

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

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

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

        <ul>
          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a77ae199f38df61e6dde8d89b93ecc936">aggregate\_unique\_create\_temp\_table</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a>. If <a className="el" href="/content/api/cpp/namespacegpudb#ade4c9fcafefc10a54ab23558c1900f8d">result\_table\_persist</a> is <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">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#a8321609fc27d60dfac001c3f95b47833">qualified\_result\_table\_name</a>. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">aggregate\_unique\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">aggregate\_unique\_false</a> </li>
            </ul>

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

          <li> <a className="el" href="/content/api/cpp/namespacegpudb#acd236cab9fe7d1fe7084335013d751cf">aggregate\_unique\_collection\_name</a>: \[DEPRECATED–please specify the containing schema as part of <a className="el" href="/content/api/cpp/namespacegpudb#aa237f688a5ba22fc86ae0b3e6c521060">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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a>. If the schema provided is non-existent, it will be automatically created. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#af35b92a0588fa81c24dcf16208d822c8">aggregate\_unique\_expression</a>: Filter expression to apply to the table. </li>

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a05bb58bc3e1dcf84975fe26bd07f0436">aggregate\_unique\_sort\_order</a>: String indicating how the returned values should be sorted. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#afb2a58270ae4341a0d5812c584a2f674">aggregate\_unique\_ascending</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad88048ed2c450445a0069a1d85b48faa">aggregate\_unique\_descending</a> </li>
            </ul>

            The default value is <a className="el" href="/content/api/cpp/namespacegpudb#afb2a58270ae4341a0d5812c584a2f674">aggregate\_unique\_ascending</a>.
          </li>

          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2a78a0aa14ebf04309bc96df3739aa27">aggregate\_unique\_order\_by</a>: Comma-separated list of the columns to be sorted by as well as the sort direction, e.g., 'timestamp asc, x desc'. The default value is ''. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#aa237f688a5ba22fc86ae0b3e6c521060">aggregate\_unique\_result\_table</a>: The name of the 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. Not available if <a className="el" href="#a3fdc4b7bccd3b9fcd14ab1b45b6c3cb0">columnName</a> is an unrestricted-length string. </li>

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#ade4c9fcafefc10a54ab23558c1900f8d">aggregate\_unique\_result\_table\_persist</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">true</a>, then the result table specified in <a className="el" href="/content/api/cpp/namespacegpudb#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> will be persisted and will not expire unless a <a className="el" href="/content/api/cpp/namespacegpudb#a28e49f5596045f1ebdc340d2fb1a05e3">ttl</a> is specified. If <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">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#a28e49f5596045f1ebdc340d2fb1a05e3">ttl</a> is specified otherwise. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">aggregate\_unique\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">aggregate\_unique\_false</a> </li>
            </ul>

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

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a383842d62bb6a43ea568c92f5d573e57">aggregate\_unique\_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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> option. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">aggregate\_unique\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">aggregate\_unique\_false</a> </li>
            </ul>

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

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#ade359b9173c6c1a7010fcd6c176cb7ba">aggregate\_unique\_result\_table\_generate\_pk</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">true</a> then set a primary key for the result table. Must be used in combination with the <a className="el" href="/content/api/cpp/namespacegpudb#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> option. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae2162cf6fc03fa39704610646c6c56e5">aggregate\_unique\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a23539e4a24f19c6e30de466dad5f9a42">aggregate\_unique\_false</a> </li>
            </ul>

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

          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a28e49f5596045f1ebdc340d2fb1a05e3">aggregate\_unique\_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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a>. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#af51d44b139b7d778beeaa3286367659d">aggregate\_unique\_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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> option. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a548924decb1fccf1698abc8d60edb330">aggregate\_unique\_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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> option. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a89580bb1a1408953bf5c4f54e9911bae">aggregate\_unique\_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#aa237f688a5ba22fc86ae0b3e6c521060">result\_table</a> option. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a5670309522a62cfc3429eb0342ccf987">aggregate\_unique\_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#aaa96a6401e834f845c3d7fe6e5fcb532">aggregate\_unique\_view\_id</a>: ID of view of which the result table will be a member. The default value is ''. </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__unique_8h_source#l00766">766</a> of file <a className="el" href="/content/api/cpp/aggregate__unique_8h_source">aggregate\_unique.h</a>.</p>
      </div>
    </div>

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

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

      <div className="memdoc">
        <p>Name of an existing table or view on which the operation will be performed, 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__unique_8h_source#l00577">577</a> of file <a className="el" href="/content/api/cpp/aggregate__unique_8h_source">aggregate\_unique.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__unique_8h_source">aggregate\_unique.h</a></li>
    </ul>
  </div>
</div>
