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

# checkTable

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

  <h2 className="memtitle"><span className="permalink"><a href="#a90b3a1ea70450b92e93bcc38ca4e5658">◆ </a></span>checkTable() <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_1CheckTableResponse">CheckTableResponse</a> gpudb::GPUdb::checkTable </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1CheckTableRequest">CheckTableRequest</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>Scans the requested tables as specified in <a className="el" href="/content/api/cpp/structgpudb_1_1CheckTableRequest#a86963be684731f0b74fd1c68633cd15c">tableNames</a> for integrity. </p>
      <p>Any table chunks which fail the check will be marked as corrupt. By default the database will automatically repair corrupt tables (via truncating). Note that since this reads every table column from disk it may be a potentially long-running operation. The option <a className="el" href="/content/api/cpp/namespacegpudb#a8401ed637326bcdcc0d079e04c8d3415">local\_only</a> can be used to skip any table files already written to a remote storage. Returns table corruption results.</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_1CheckTableRequest">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_1CheckTableResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="adebe60a19cff32b856f6b0fdf65fa742" />

  <h2 className="memtitle"><span className="permalink"><a href="#adebe60a19cff32b856f6b0fdf65fa742">◆ </a></span>checkTable() <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_1CheckTableResponse">CheckTableResponse</a> & gpudb::GPUdb::checkTable </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1CheckTableRequest">CheckTableRequest</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_1CheckTableResponse">CheckTableResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Scans the requested tables as specified in <a className="el" href="/content/api/cpp/structgpudb_1_1CheckTableRequest#a86963be684731f0b74fd1c68633cd15c">tableNames</a> for integrity. </p>
      <p>Any table chunks which fail the check will be marked as corrupt. By default the database will automatically repair corrupt tables (via truncating). Note that since this reads every table column from disk it may be a potentially long-running operation. The option <a className="el" href="/content/api/cpp/namespacegpudb#a8401ed637326bcdcc0d079e04c8d3415">local\_only</a> can be used to skip any table files already written to a remote storage. Returns table corruption results.</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_1CheckTableRequest">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_1CheckTableResponse">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_1CheckTableResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="af3c5071524742d67504b556411ccca18" />

  <h2 className="memtitle"><span className="permalink"><a href="#af3c5071524742d67504b556411ccca18">◆ </a></span>checkTable() <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_1CheckTableResponse">CheckTableResponse</a> gpudb::GPUdb::checkTable </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">options</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Scans the requested tables as specified in <span className="em arg">tableNames</span> for integrity. </p>
      <p>Any table chunks which fail the check will be marked as corrupt. By default the database will automatically repair corrupt tables (via truncating). Note that since this reads every table column from disk it may be a potentially long-running operation. The option <a className="el" href="/content/api/cpp/namespacegpudb#a8401ed637326bcdcc0d079e04c8d3415">local\_only</a> can be used to skip any table files already written to a remote storage. Returns table corruption results.</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">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a8401ed637326bcdcc0d079e04c8d3415">check\_table\_local\_only</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#acedf36978a7c4bcd539742011f089d5d">true</a> only locally persisted files will be checked. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#acedf36978a7c4bcd539742011f089d5d">check\_table\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#af4c598105fb0d8ba28b7b7f6fbf3d47f">check\_table\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#af4c598105fb0d8ba28b7b7f6fbf3d47f">check\_table\_false</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a03e8a889b6b455654cae1415bdb0ae11">check\_table\_show\_detail</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#acedf36978a7c4bcd539742011f089d5d">true</a> reports individual chunk errors. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#acedf36978a7c4bcd539742011f089d5d">check\_table\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#af4c598105fb0d8ba28b7b7f6fbf3d47f">check\_table\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#acedf36978a7c4bcd539742011f089d5d">check\_table\_true</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_1CheckTableResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a3ffa91f42f974de2d1872af38fe318f3" />

  <h2 className="memtitle"><span className="permalink"><a href="#a3ffa91f42f974de2d1872af38fe318f3">◆ </a></span>checkTable() <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_1CheckTableResponse">CheckTableResponse</a> & gpudb::GPUdb::checkTable </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">options</span></span>, </td>
        </tr>

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

          <td />

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

    <div className="memdoc">
      <p>Scans the requested tables as specified in <span className="em arg">tableNames</span> for integrity. </p>
      <p>Any table chunks which fail the check will be marked as corrupt. By default the database will automatically repair corrupt tables (via truncating). Note that since this reads every table column from disk it may be a potentially long-running operation. The option <a className="el" href="/content/api/cpp/namespacegpudb#a8401ed637326bcdcc0d079e04c8d3415">local\_only</a> can be used to skip any table files already written to a remote storage. Returns table corruption results.</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">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a8401ed637326bcdcc0d079e04c8d3415">check\_table\_local\_only</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#acedf36978a7c4bcd539742011f089d5d">true</a> only locally persisted files will be checked. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#acedf36978a7c4bcd539742011f089d5d">check\_table\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#af4c598105fb0d8ba28b7b7f6fbf3d47f">check\_table\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#af4c598105fb0d8ba28b7b7f6fbf3d47f">check\_table\_false</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a03e8a889b6b455654cae1415bdb0ae11">check\_table\_show\_detail</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#acedf36978a7c4bcd539742011f089d5d">true</a> reports individual chunk errors. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#acedf36978a7c4bcd539742011f089d5d">check\_table\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#af4c598105fb0d8ba28b7b7f6fbf3d47f">check\_table\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#acedf36978a7c4bcd539742011f089d5d">check\_table\_true</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_1CheckTableResponse">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_1CheckTableResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
