> ## 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="adedd21391e4301a79aca49f95e18a3c9" />

  <h2 className="memtitle"><span className="permalink"><a href="#adedd21391e4301a79aca49f95e18a3c9">◆ </a></span>adminRepairTable() <span className="overload">\[1/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableResponse">AdminRepairTableResponse</a> gpudb::GPUdb::adminRepairTable </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableRequest">AdminRepairTableRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
          <td>)</td>
          <td> const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Manually repair a corrupted table. </p>
      <p>Returns information about affected tables.</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">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableRequest">Request</a> 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"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a2b2b59214a68e36d7781038f9dba1cdb" />

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

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableResponse">AdminRepairTableResponse</a> & gpudb::GPUdb::adminRepairTable </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_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"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableResponse">AdminRepairTableResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Manually repair a corrupted table. </p>
      <p>Returns information about affected tables.</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">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableRequest">Request</a> object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="a7cc3c26f1ed85ae3f55d77dc0c034a0e" />

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

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableResponse">AdminRepairTableResponse</a> gpudb::GPUdb::adminRepairTable </td>
          <td>(</td>
          <td className="paramtype">const std::vector\< std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">tableNames</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">tableTypes</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> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Manually repair a corrupted table. </p>
      <p>Returns information about affected tables.</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">tableNames</td>
              <td>List of tables to query. An asterisk returns all tables. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">tableTypes</td>
              <td>ID of the type per table. </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#a4bada1b9469a0cd397de7fe5e555d585">admin\_repair\_table\_repair\_policy</a>: Corrective action to take. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a4fe6545f048aa4870400a0c09c00fb7f">admin\_repair\_table\_delete\_chunks</a>: Deletes any corrupted chunks. </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a62e3c8da051c7ade51a6d8d2843836cd">admin\_repair\_table\_shrink\_columns</a>: Shrinks corrupted chunks to the shortest column. </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#af345373cc94482fba61976ee8b11f41a">admin\_repair\_table\_replay\_wal</a>: Manually invokes write-ahead log (WAL) replay on the table. </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#ab89a7837f586b9b6a7cfea294f36e284">admin\_repair\_table\_alter\_table</a>: Reset columns modification after incomplete alter column. </li>
                    </ul>
                  </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#ad9086c3e62d17a48fef4d21172b9b642">admin\_repair\_table\_verify\_all</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#ab920a046b0fcb2c47b02262a0fd3c4a4">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/cpp/namespacegpudb#ab4fc473dc98a532e863323eed0eca559">admin\_repair\_table\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#ab920a046b0fcb2c47b02262a0fd3c4a4">admin\_repair\_table\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#ab920a046b0fcb2c47b02262a0fd3c4a4">admin\_repair\_table\_false</a>.
                  </li>
                </ul>

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

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a110ae4c3ec9cbc81402621acf5068da5" />

  <h2 className="memtitle"><span className="permalink"><a href="#a110ae4c3ec9cbc81402621acf5068da5">◆ </a></span>adminRepairTable() <span className="overload">\[4/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableResponse">AdminRepairTableResponse</a> & gpudb::GPUdb::adminRepairTable </td>
          <td>(</td>
          <td className="paramtype">const std::vector\< std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">tableNames</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">tableTypes</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>

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

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableResponse">AdminRepairTableResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Manually repair a corrupted table. </p>
      <p>Returns information about affected tables.</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">tableNames</td>
              <td>List of tables to query. An asterisk returns all tables. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">tableTypes</td>
              <td>ID of the type per table. </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#a4bada1b9469a0cd397de7fe5e555d585">admin\_repair\_table\_repair\_policy</a>: Corrective action to take. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a4fe6545f048aa4870400a0c09c00fb7f">admin\_repair\_table\_delete\_chunks</a>: Deletes any corrupted chunks. </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a62e3c8da051c7ade51a6d8d2843836cd">admin\_repair\_table\_shrink\_columns</a>: Shrinks corrupted chunks to the shortest column. </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#af345373cc94482fba61976ee8b11f41a">admin\_repair\_table\_replay\_wal</a>: Manually invokes write-ahead log (WAL) replay on the table. </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#ab89a7837f586b9b6a7cfea294f36e284">admin\_repair\_table\_alter\_table</a>: Reset columns modification after incomplete alter column. </li>
                    </ul>
                  </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#ad9086c3e62d17a48fef4d21172b9b642">admin\_repair\_table\_verify\_all</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#ab920a046b0fcb2c47b02262a0fd3c4a4">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/cpp/namespacegpudb#ab4fc473dc98a532e863323eed0eca559">admin\_repair\_table\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#ab920a046b0fcb2c47b02262a0fd3c4a4">admin\_repair\_table\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#ab920a046b0fcb2c47b02262a0fd3c4a4">admin\_repair\_table\_false</a>.
                  </li>
                </ul>

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

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
