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

# check_table

### check\_table

<ul>
  <li>
    check\_table(\
    &#x20;table\_names: string\[],\
    &#x20;options?: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md),\
    ): Promise\<[CheckTableResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/CheckTableResponse.md)>

    Scans the requested tables as specified in `table_names` for integrity. 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 local\_only can be used to skip any table files already written to a remote storage.Returns table corruption results.

    #### Parameters

    <ul>
      <li>
        table\_names: string\[]

        List of tables to query. An asterisk returns all tables.
      </li>

      <li>
        `Optional`options: Record\<string, string>

        Optional parameters.
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[CheckTableResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/CheckTableResponse.md)>

    Promise\<Types.CheckTableResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:5292](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L5292)</li>
    </ul>
  </li>
</ul>

### check\_table\_request

<ul>
  <li>
    check\_table\_request(\
    &#x20;request: [CheckTableRequest](https://docs.kinetica.com/content/api/nodejs/interfaces/CheckTableRequest.md),\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md),\
    ): Promise\<[CheckTableResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/CheckTableResponse.md)>

    Scans the requested tables as specified in `table_names` for integrity. 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 local\_only can be used to skip any table files already written to a remote storage.Returns table corruption results.

    #### Parameters

    <ul>
      <li>
        request: [CheckTableRequest](https://docs.kinetica.com/content/api/nodejs/interfaces/CheckTableRequest.md)

        Request object containing the parameters for the operation
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[CheckTableResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/CheckTableResponse.md)>

    Promise\<Types.CheckTableResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:5262](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L5262)</li>
    </ul>
  </li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.