> ## 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.

# createUnion

<div className="kinetica-doxygen">
  <div id="a954fb192ba152fcca3d01ee78c8931a9" />

  <h2 className="memtitle"><span className="permalink"><a href="#a954fb192ba152fcca3d01ee78c8931a9">◆ </a></span>createUnion() <span className="overload">\[1/2]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname"><a className="el" href="/content/api/cs/classkinetica_1_1CreateUnionResponse">CreateUnionResponse</a> kinetica.Kinetica.createUnion </td>
                <td>(</td>
                <td className="paramtype"><a className="el" href="/content/api/cs/classkinetica_1_1CreateUnionRequest">CreateUnionRequest</a></td>
                <td className="paramname"><span className="paramname"><span className="em">request\_</span></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>Merges data from one or more tables with comparable data types into a new table. </p>
      <p>The following merges are supported:</p>
      <p>UNION (DISTINCT/ALL) - For data set union details and examples, see <a href="/content/concepts/unions/" target="_top">Union</a>. For limitations, see <a href="/content/concepts/unions/#limitations-and-cautions" target="_top">Union Limitations and Cautions</a>.</p>
      <p>INTERSECT (DISTINCT/ALL) - For data set intersection details and examples, see <a href="/content/concepts/intersect/" target="_top">Intersect</a>. For limitations, see <a href="/content/concepts/intersect/#limitations" target="_top">Intersect Limitations</a>.</p>
      <p>EXCEPT (DISTINCT/ALL) - For data set subtraction details and examples, see <a href="/content/concepts/except/" target="_top">Except</a>. For limitations, see <a href="/content/concepts/except/#limitations" target="_top">Except Limitations</a>.</p>

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

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">request\_</td>
              <td>Request object containing the parameters for the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Response object containing the result of the operation. </div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L29899">29899</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="ac40046563bd53985cd86b7093e124b37" />

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

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname"><a className="el" href="/content/api/cs/classkinetica_1_1CreateUnionResponse">CreateUnionResponse</a> kinetica.Kinetica.createUnion </td>
                <td>(</td>
                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">table\_name</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">IList\< string ></td>
                <td className="paramname"><span className="paramname"><span className="em">table\_names</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">IList\< IList\< string > ></td>
                <td className="paramname"><span className="paramname"><span className="em">input\_column\_names</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">IList\< string ></td>
                <td className="paramname"><span className="paramname"><span className="em">output\_column\_names</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">options</span></span><span className="paramdefsep"> = </span><span className="paramdefval">null</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>Merges data from one or more tables with comparable data types into a new table. </p>
      <p>The following merges are supported:</p>
      <p>UNION (DISTINCT/ALL) - For data set union details and examples, see <a href="/content/concepts/unions/" target="_top">Union</a>. For limitations, see <a href="/content/concepts/unions/#limitations-and-cautions" target="_top">Union Limitations and Cautions</a>.</p>
      <p>INTERSECT (DISTINCT/ALL) - For data set intersection details and examples, see <a href="/content/concepts/intersect/" target="_top">Intersect</a>. For limitations, see <a href="/content/concepts/intersect/#limitations" target="_top">Intersect Limitations</a>.</p>
      <p>EXCEPT (DISTINCT/ALL) - For data set subtraction details and examples, see <a href="/content/concepts/except/" target="_top">Except</a>. For limitations, see <a href="/content/concepts/except/#limitations" target="_top">Except Limitations</a>.</p>

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

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">table\_name</td>
              <td>Name of the table to be created, 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>.</td>
            </tr>

            <tr>
              <td className="paramname">table\_names</td>
              <td>The list of table names to merge, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a>. Must contain the names of one or more existing tables.</td>
            </tr>

            <tr>
              <td className="paramname">input\_column\_names</td>
              <td>The list of columns from each of the corresponding input tables.</td>
            </tr>

            <tr>
              <td className="paramname">output\_column\_names</td>
              <td>The list of names of the columns to be stored in the output table.</td>
            </tr>

            <tr>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ac7d26b60a613cc89d4c9699fc396d0ba">CREATE\_TEMP\_TABLE</a>: If <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a>, a unique temporary table name will be generated in the sys\_temp schema and used in place of <span className="em">table\_name</span> . If <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a99297fe0676ca3868f1a3e1b182c5864">PERSIST</a> is <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">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/cs/structkinetica_1_1CreateUnionResponse_1_1Info#a68413faf61e48937c3c125c8845cf96e">QUALIFIED\_TABLE\_NAME</a>. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af26584a2dfd8b1e84451e05d66871704">COLLECTION\_NAME</a>: \[DEPRECATED–please specify the containing schema for the projection as part of <span className="em">table\_name</span> and use <a className="el" href="#ac754b44062e7b90b8afa50ddfa8ccbf2">createSchema</a> to create the schema if non-existent] Name of the schema for the output table. If the schema provided is non-existent, it will be automatically created. The default value is ''. </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ac57534911e5b7dcc7e79e15009729692">MODE</a>: The mode describes what rows of the tables being unioned will be retained. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a9154d77feed9c801abfce0a215bb6888">UNION\_ALL</a>: Retains all rows from the specified tables. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a5cb2860f137db6555a5ccea4d6578c6b">UNION</a>: Retains all unique rows from the specified tables (synonym for <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a43f432d2053d6d413a3dddac8c68def6">UNION\_DISTINCT</a>). </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a43f432d2053d6d413a3dddac8c68def6">UNION\_DISTINCT</a>: Retains all unique rows from the specified tables. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a870cf09709741292e860e85f9421cf65">EXCEPT</a>: Retains all unique rows from the first table that do not appear in the second table (only works on 2 tables). </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a8ae5fba81d6db32a4c3b17b16d9c34a0">EXCEPT\_ALL</a>: Retains all rows(including duplicates) from the first table that do not appear in the second table (only works on 2 tables). </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a6ee32394bf2fbb1f234dac3605084c58">INTERSECT</a>: Retains all unique rows that appear in both of the specified tables (only works on 2 tables). </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af5f6f7125a0692297c6da712d79105e7">INTERSECT\_ALL</a>: Retains all rows(including duplicates) that appear in both of the specified tables (only works on 2 tables). </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a9154d77feed9c801abfce0a215bb6888">UNION\_ALL</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a346909c522f11c59eacad361ea355b4b">CHUNK\_SIZE</a>: Indicates the number of records per chunk to be used for this output table. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#aebf0b66f20901e28498fd169a8fc6321">CHUNK\_COLUMN\_MAX\_MEMORY</a>: Indicates the target maximum data size for each column in a chunk to be used for this output table. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a65d61f07104688c8cb3936aadab35e27">CHUNK\_MAX\_MEMORY</a>: Indicates the target maximum data size for all columns in a chunk to be used for this output table. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a65460d2747ef226c5d5010f53297254b">CREATE\_INDEXES</a>: Comma-separated list of columns on which to create indexes on the output table. The columns specified must be present in <span className="em">output\_column\_names</span> . </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ad69b346fb1af898d73324a9485c3fb54">PARTITION\_TYPE</a>: <a href="/content/concepts/tables/#partitioning" target="_top">Partitioning</a> scheme to use for the output table. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a2785f8c48e915690c8c97b4d22edd9d8">RANGE</a>: Use <a href="/content/concepts/tables/#partitioning-by-range" target="_top">range partitioning</a>. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a73ad91096cc4af02d162eff42cb4ec7d">INTERVAL</a>: Use <a href="/content/concepts/tables/#partitioning-by-interval" target="_top">interval partitioning</a>. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ae37aee06c2f7b010d950387b6f3a924d">LIST</a>: Use <a href="/content/concepts/tables/#partitioning-by-list" target="_top">list partitioning</a>. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a7d4a4c668c462b71e91c83747d2c20bd">HASH</a>: Use <a href="/content/concepts/tables/#partitioning-by-hash" target="_top">hash partitioning</a>. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a650ba296013d1dd1b69bab8da4c49e71">SERIES</a>: Use <a href="/content/concepts/tables/#partitioning-by-series" target="_top">series partitioning</a>. </li>
                    </ul>
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a354c30ff1d31c64c8cb38c712bde6378">PARTITION\_KEYS</a>: Comma-separated list of partition keys, which are the columns or column expressions by which records will be assigned to partitions defined by <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a0be150e9cbb1038358762bd63e340dea">PARTITION\_DEFINITIONS</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a0be150e9cbb1038358762bd63e340dea">PARTITION\_DEFINITIONS</a>: Comma-separated list of partition definitions, whose format depends on the choice of <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ad69b346fb1af898d73324a9485c3fb54">PARTITION\_TYPE</a>. See <a href="/content/concepts/tables/#partitioning-by-range" target="_top">range partitioning</a>, <a href="/content/concepts/tables/#partitioning-by-interval" target="_top">interval partitioning</a>, <a href="/content/concepts/tables/#partitioning-by-list" target="_top">list partitioning</a>, <a href="/content/concepts/tables/#partitioning-by-hash" target="_top">hash partitioning</a>, or <a href="/content/concepts/tables/#partitioning-by-series" target="_top">series partitioning</a> for example formats. </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ae2a4e2a45fa2582be44e265c650c0eef">IS\_AUTOMATIC\_PARTITION</a>: If <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a>, a new partition will be created for values which don't fall into an existing partition. Currently only supported for <a href="/content/concepts/tables/#partitioning-by-list" target="_top">list partitions</a>. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ae76e338d78c3a364a7070d45c7bf3d53">TTL</a>: Sets the <a href="/content/concepts/ttl/" target="_top">TTL</a> of the output table specified in <span className="em">table\_name</span> . </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a99297fe0676ca3868f1a3e1b182c5864">PERSIST</a>: If <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a>, then the output table specified in <span className="em">table\_name</span> will be persisted and will not expire unless a <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ae76e338d78c3a364a7070d45c7bf3d53">TTL</a> is specified. If <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a>, then the output table will be an in-memory table and will expire unless a <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ae76e338d78c3a364a7070d45c7bf3d53">TTL</a> is specified otherwise. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a84d9b622ed6d6033e6e1818dfe00ce7d">VIEW\_ID</a>: ID of view of which this output table is a member. The default value is ''. </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a9745b8f137358623b015bbc4ad325172">FORCE\_REPLICATED</a>: If <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a>, then the output table specified in <span className="em">table\_name</span> will be replicated even if the source tables are not. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a3ef16904f9aa2a862885ce4f19da3a74">STRATEGY\_DEFINITION</a>: The <a href="/content/rm/concepts/#tier-strategies" target="_top">tier strategy</a> for the table and its columns. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#aeda99527985b37bf49d7b0eaca745fee">COMPRESSION\_CODEC</a>: The default <a href="/content/concepts/column_compression/" target="_top">compression codec</a> for this table's columns. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#aed547787e140054378501f91d6e9a535">NO\_COUNT</a>: Return a count of 0 for the union table response to avoid the cost of counting; optimization needed for many chunk virtual unions. The default value is 'false'. </li>
                </ul>

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

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Response object containing the result of the operation. </div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L30323">30323</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="a3d9872b6d9fdd0dfb7edf383701fecd8" />

  <h2 className="memtitle"><span className="permalink"><a href="#a3d9872b6d9fdd0dfb7edf383701fecd8">◆ </a></span>CreateUnionAsync() <span className="overload">\[1/2]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname">async System.Threading.Tasks.Task\< <a className="el" href="/content/api/cs/classkinetica_1_1CreateUnionResponse">CreateUnionResponse</a> > kinetica.Kinetica.CreateUnionAsync </td>
                <td>(</td>
                <td className="paramtype"><a className="el" href="/content/api/cs/classkinetica_1_1CreateUnionRequest">CreateUnionRequest</a></td>
                <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">System.Threading.CancellationToken</td>
                <td className="paramname"><span className="paramname"><span className="em">cancellationToken</span></span><span className="paramdefsep"> = </span><span className="paramdefval">default</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>Merges data from one or more tables with comparable data types into a new table. </p>
      <p>(async) </p>
      <p>The following merges are supported:</p>
      <p>UNION (DISTINCT/ALL) - For data set union details and examples, see <a href="/content/concepts/unions/" target="_top">Union</a>. For limitations, see <a href="/content/concepts/unions/#limitations-and-cautions" target="_top">Union Limitations and Cautions</a>.</p>
      <p>INTERSECT (DISTINCT/ALL) - For data set intersection details and examples, see <a href="/content/concepts/intersect/" target="_top">Intersect</a>. For limitations, see <a href="/content/concepts/intersect/#limitations" target="_top">Intersect Limitations</a>.</p>
      <p>EXCEPT (DISTINCT/ALL) - For data set subtraction details and examples, see <a href="/content/concepts/except/" target="_top">Except</a>. For limitations, see <a href="/content/concepts/except/#limitations" target="_top">Except Limitations</a>.</p>

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

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">request\_</td>
              <td>Request object containing the parameters for the operation.</td>
            </tr>

            <tr>
              <td className="paramname">cancellationToken</td>
              <td>Cancellation token to cancel the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Task that returns the response object containing the result of the operation.</div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L29931">29931</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="ab73f5bbcdca455cf6052d22a276db930" />

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

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname">async System.Threading.Tasks.Task\< <a className="el" href="/content/api/cs/classkinetica_1_1CreateUnionResponse">CreateUnionResponse</a> > kinetica.Kinetica.CreateUnionAsync </td>
                <td>(</td>
                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">table\_name</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">IList\< string ></td>
                <td className="paramname"><span className="paramname"><span className="em">table\_names</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">IList\< IList\< string > ></td>
                <td className="paramname"><span className="paramname"><span className="em">input\_column\_names</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">IList\< string ></td>
                <td className="paramname"><span className="paramname"><span className="em">output\_column\_names</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">options</span></span><span className="paramdefsep"> = </span><span className="paramdefval">null</span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">System.Threading.CancellationToken</td>
                <td className="paramname"><span className="paramname"><span className="em">cancellationToken</span></span><span className="paramdefsep"> = </span><span className="paramdefval">default</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>Merges data from one or more tables with comparable data types into a new table. </p>
      <p>(async) </p>
      <p>The following merges are supported:</p>
      <p>UNION (DISTINCT/ALL) - For data set union details and examples, see <a href="/content/concepts/unions/" target="_top">Union</a>. For limitations, see <a href="/content/concepts/unions/#limitations-and-cautions" target="_top">Union Limitations and Cautions</a>.</p>
      <p>INTERSECT (DISTINCT/ALL) - For data set intersection details and examples, see <a href="/content/concepts/intersect/" target="_top">Intersect</a>. For limitations, see <a href="/content/concepts/intersect/#limitations" target="_top">Intersect Limitations</a>.</p>
      <p>EXCEPT (DISTINCT/ALL) - For data set subtraction details and examples, see <a href="/content/concepts/except/" target="_top">Except</a>. For limitations, see <a href="/content/concepts/except/#limitations" target="_top">Except Limitations</a>.</p>

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

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">table\_name</td>
              <td>Name of the table to be created, 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>.</td>
            </tr>

            <tr>
              <td className="paramname">table\_names</td>
              <td>The list of table names to merge, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a>. Must contain the names of one or more existing tables.</td>
            </tr>

            <tr>
              <td className="paramname">input\_column\_names</td>
              <td>The list of columns from each of the corresponding input tables.</td>
            </tr>

            <tr>
              <td className="paramname">output\_column\_names</td>
              <td>The list of names of the columns to be stored in the output table.</td>
            </tr>

            <tr>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ac7d26b60a613cc89d4c9699fc396d0ba">CREATE\_TEMP\_TABLE</a>: If <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a>, a unique temporary table name will be generated in the sys\_temp schema and used in place of <span className="em">table\_name</span> . If <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a99297fe0676ca3868f1a3e1b182c5864">PERSIST</a> is <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">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/cs/structkinetica_1_1CreateUnionResponse_1_1Info#a68413faf61e48937c3c125c8845cf96e">QUALIFIED\_TABLE\_NAME</a>. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af26584a2dfd8b1e84451e05d66871704">COLLECTION\_NAME</a>: \[DEPRECATED–please specify the containing schema for the projection as part of <span className="em">table\_name</span> and use <a className="el" href="#ac754b44062e7b90b8afa50ddfa8ccbf2">createSchema</a> to create the schema if non-existent] Name of the schema for the output table. If the schema provided is non-existent, it will be automatically created. The default value is ''. </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ac57534911e5b7dcc7e79e15009729692">MODE</a>: The mode describes what rows of the tables being unioned will be retained. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a9154d77feed9c801abfce0a215bb6888">UNION\_ALL</a>: Retains all rows from the specified tables. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a5cb2860f137db6555a5ccea4d6578c6b">UNION</a>: Retains all unique rows from the specified tables (synonym for <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a43f432d2053d6d413a3dddac8c68def6">UNION\_DISTINCT</a>). </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a43f432d2053d6d413a3dddac8c68def6">UNION\_DISTINCT</a>: Retains all unique rows from the specified tables. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a870cf09709741292e860e85f9421cf65">EXCEPT</a>: Retains all unique rows from the first table that do not appear in the second table (only works on 2 tables). </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a8ae5fba81d6db32a4c3b17b16d9c34a0">EXCEPT\_ALL</a>: Retains all rows(including duplicates) from the first table that do not appear in the second table (only works on 2 tables). </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a6ee32394bf2fbb1f234dac3605084c58">INTERSECT</a>: Retains all unique rows that appear in both of the specified tables (only works on 2 tables). </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af5f6f7125a0692297c6da712d79105e7">INTERSECT\_ALL</a>: Retains all rows(including duplicates) that appear in both of the specified tables (only works on 2 tables). </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a9154d77feed9c801abfce0a215bb6888">UNION\_ALL</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a346909c522f11c59eacad361ea355b4b">CHUNK\_SIZE</a>: Indicates the number of records per chunk to be used for this output table. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#aebf0b66f20901e28498fd169a8fc6321">CHUNK\_COLUMN\_MAX\_MEMORY</a>: Indicates the target maximum data size for each column in a chunk to be used for this output table. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a65d61f07104688c8cb3936aadab35e27">CHUNK\_MAX\_MEMORY</a>: Indicates the target maximum data size for all columns in a chunk to be used for this output table. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a65460d2747ef226c5d5010f53297254b">CREATE\_INDEXES</a>: Comma-separated list of columns on which to create indexes on the output table. The columns specified must be present in <span className="em">output\_column\_names</span> . </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ad69b346fb1af898d73324a9485c3fb54">PARTITION\_TYPE</a>: <a href="/content/concepts/tables/#partitioning" target="_top">Partitioning</a> scheme to use for the output table. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a2785f8c48e915690c8c97b4d22edd9d8">RANGE</a>: Use <a href="/content/concepts/tables/#partitioning-by-range" target="_top">range partitioning</a>. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a73ad91096cc4af02d162eff42cb4ec7d">INTERVAL</a>: Use <a href="/content/concepts/tables/#partitioning-by-interval" target="_top">interval partitioning</a>. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ae37aee06c2f7b010d950387b6f3a924d">LIST</a>: Use <a href="/content/concepts/tables/#partitioning-by-list" target="_top">list partitioning</a>. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a7d4a4c668c462b71e91c83747d2c20bd">HASH</a>: Use <a href="/content/concepts/tables/#partitioning-by-hash" target="_top">hash partitioning</a>. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a650ba296013d1dd1b69bab8da4c49e71">SERIES</a>: Use <a href="/content/concepts/tables/#partitioning-by-series" target="_top">series partitioning</a>. </li>
                    </ul>
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a354c30ff1d31c64c8cb38c712bde6378">PARTITION\_KEYS</a>: Comma-separated list of partition keys, which are the columns or column expressions by which records will be assigned to partitions defined by <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a0be150e9cbb1038358762bd63e340dea">PARTITION\_DEFINITIONS</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a0be150e9cbb1038358762bd63e340dea">PARTITION\_DEFINITIONS</a>: Comma-separated list of partition definitions, whose format depends on the choice of <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ad69b346fb1af898d73324a9485c3fb54">PARTITION\_TYPE</a>. See <a href="/content/concepts/tables/#partitioning-by-range" target="_top">range partitioning</a>, <a href="/content/concepts/tables/#partitioning-by-interval" target="_top">interval partitioning</a>, <a href="/content/concepts/tables/#partitioning-by-list" target="_top">list partitioning</a>, <a href="/content/concepts/tables/#partitioning-by-hash" target="_top">hash partitioning</a>, or <a href="/content/concepts/tables/#partitioning-by-series" target="_top">series partitioning</a> for example formats. </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ae2a4e2a45fa2582be44e265c650c0eef">IS\_AUTOMATIC\_PARTITION</a>: If <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a>, a new partition will be created for values which don't fall into an existing partition. Currently only supported for <a href="/content/concepts/tables/#partitioning-by-list" target="_top">list partitions</a>. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ae76e338d78c3a364a7070d45c7bf3d53">TTL</a>: Sets the <a href="/content/concepts/ttl/" target="_top">TTL</a> of the output table specified in <span className="em">table\_name</span> . </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a99297fe0676ca3868f1a3e1b182c5864">PERSIST</a>: If <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a>, then the output table specified in <span className="em">table\_name</span> will be persisted and will not expire unless a <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ae76e338d78c3a364a7070d45c7bf3d53">TTL</a> is specified. If <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a>, then the output table will be an in-memory table and will expire unless a <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#ae76e338d78c3a364a7070d45c7bf3d53">TTL</a> is specified otherwise. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a84d9b622ed6d6033e6e1818dfe00ce7d">VIEW\_ID</a>: ID of view of which this output table is a member. The default value is ''. </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a9745b8f137358623b015bbc4ad325172">FORCE\_REPLICATED</a>: If <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a>, then the output table specified in <span className="em">table\_name</span> will be replicated even if the source tables are not. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#af4b60287222b752c8dc75ece2d1bc32e">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a48c1aa0bb4f1fdf2acb8b414c0980e95">FALSE</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#a3ef16904f9aa2a862885ce4f19da3a74">STRATEGY\_DEFINITION</a>: The <a href="/content/rm/concepts/#tier-strategies" target="_top">tier strategy</a> for the table and its columns. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#aeda99527985b37bf49d7b0eaca745fee">COMPRESSION\_CODEC</a>: The default <a href="/content/concepts/column_compression/" target="_top">compression codec</a> for this table's columns. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1CreateUnionRequest_1_1Options#aed547787e140054378501f91d6e9a535">NO\_COUNT</a>: Return a count of 0 for the union table response to avoid the cost of counting; optimization needed for many chunk virtual unions. The default value is 'false'. </li>
                </ul>

                The default value is an empty Dictionary.
              </td>
            </tr>

            <tr>
              <td className="paramname">cancellationToken</td>
              <td>Cancellation token to cancel the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Task that returns the response object containing the result of the operation.</div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L30720">30720</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>
</div>
