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

# adminRepairTable

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

  <h2 className="memtitle"><span className="permalink"><a href="#aac1c645f2bc75d999c7954684ffe4d2f">◆ </a></span>adminRepairTable() <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_1AdminRepairTableResponse">AdminRepairTableResponse</a> kinetica.Kinetica.adminRepairTable </td>
                <td>(</td>
                <td className="paramtype"><a className="el" href="/content/api/cs/classkinetica_1_1AdminRepairTableRequest">AdminRepairTableRequest</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>Manually repair a corrupted table.Returns information about affected tables. </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#L2237">2237</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="a8c886041edd02b5d2287d6db76fd67ce" />

  <h2 className="memtitle"><span className="permalink"><a href="#a8c886041edd02b5d2287d6db76fd67ce">◆ </a></span>adminRepairTable() <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_1AdminRepairTableResponse">AdminRepairTableResponse</a> kinetica.Kinetica.adminRepairTable </td>
                <td>(</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">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">table\_types</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>Manually repair a corrupted table.Returns information about affected tables. </p>

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

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">table\_names</td>
              <td>List of tables to query. An asterisk returns all tables.</td>
            </tr>

            <tr>
              <td className="paramname">table\_types</td>
              <td>ID of the type per table.</td>
            </tr>

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

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#af0f5ed55f166b0786dffcf535d4de393">REPAIR\_POLICY</a>: Corrective action to take. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#a93b59f32a69c2a09e038953de8db86c4">DELETE\_CHUNKS</a>: Deletes any corrupted chunks. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#af1bbb995d9402d060f24e77e5501a821">SHRINK\_COLUMNS</a>: Shrinks corrupted chunks to the shortest column. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#a33e3473f19d300f938d205b401797e67">REPLAY\_WAL</a>: Manually invokes write-ahead log (WAL) replay on the table. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#a032b29adb2681f2c0e8ae8d39982f5ea">ALTER\_TABLE</a>: Reset columns modification after incomplete alter column. </li>
                    </ul>
                  </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#aec53e5af5777e028c2ec368a848f47a8">VERIFY\_ALL</a>: If <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#ae631c5dcccc6268d9d0f366d2ee13339">FALSE</a> only table chunk data already known to be corrupted will be repaired. Otherwise the database will perform a full table scan to check for correctness. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#a99b383f6a03f3e9e1a8f5d58c3801b59">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#ae631c5dcccc6268d9d0f366d2ee13339">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#ae631c5dcccc6268d9d0f366d2ee13339">FALSE</a>.
                  </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#L2336">2336</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="a041172f91b9e8538024d01e0de6db530" />

  <h2 className="memtitle"><span className="permalink"><a href="#a041172f91b9e8538024d01e0de6db530">◆ </a></span>AdminRepairTableAsync() <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_1AdminRepairTableResponse">AdminRepairTableResponse</a> > kinetica.Kinetica.AdminRepairTableAsync </td>
                <td>(</td>
                <td className="paramtype"><a className="el" href="/content/api/cs/classkinetica_1_1AdminRepairTableRequest">AdminRepairTableRequest</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>Manually repair a corrupted table.Returns information about affected tables. </p>
      <p>(async)</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#L2253">2253</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="a53497dfafffb0db081f19e39ac85c2c6" />

  <h2 className="memtitle"><span className="permalink"><a href="#a53497dfafffb0db081f19e39ac85c2c6">◆ </a></span>AdminRepairTableAsync() <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_1AdminRepairTableResponse">AdminRepairTableResponse</a> > kinetica.Kinetica.AdminRepairTableAsync </td>
                <td>(</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">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">table\_types</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>Manually repair a corrupted table.Returns information about affected tables. </p>
      <p>(async)</p>

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

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">table\_names</td>
              <td>List of tables to query. An asterisk returns all tables.</td>
            </tr>

            <tr>
              <td className="paramname">table\_types</td>
              <td>ID of the type per table.</td>
            </tr>

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

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#af0f5ed55f166b0786dffcf535d4de393">REPAIR\_POLICY</a>: Corrective action to take. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#a93b59f32a69c2a09e038953de8db86c4">DELETE\_CHUNKS</a>: Deletes any corrupted chunks. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#af1bbb995d9402d060f24e77e5501a821">SHRINK\_COLUMNS</a>: Shrinks corrupted chunks to the shortest column. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#a33e3473f19d300f938d205b401797e67">REPLAY\_WAL</a>: Manually invokes write-ahead log (WAL) replay on the table. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#a032b29adb2681f2c0e8ae8d39982f5ea">ALTER\_TABLE</a>: Reset columns modification after incomplete alter column. </li>
                    </ul>
                  </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#aec53e5af5777e028c2ec368a848f47a8">VERIFY\_ALL</a>: If <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#ae631c5dcccc6268d9d0f366d2ee13339">FALSE</a> only table chunk data already known to be corrupted will be repaired. Otherwise the database will perform a full table scan to check for correctness. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#a99b383f6a03f3e9e1a8f5d58c3801b59">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#ae631c5dcccc6268d9d0f366d2ee13339">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1AdminRepairTableRequest_1_1Options#ae631c5dcccc6268d9d0f366d2ee13339">FALSE</a>.
                  </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#L2421">2421</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>
