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

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/check_table.rs#L25-L31)
pub async fn [check\_table](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/check-table.md#method.check_table)( \&self, table\_names: [Vec](https://doc.rust-lang.org/1.98.1/alloc/vec/struct.Vec.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>, ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[CheckTableResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.CheckTableResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Shows information relating corrupt table entriesScans 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.

##### Arguments

<ul>
  <li>`table_names` - List of tables to query. An asterisk returns all tables.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/check_table.rs#L48-L64)
pub async fn [check\_table\_with\_opts](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/check-table.md#method.check_table_with_opts)( \&self, table\_names: [Vec](https://doc.rust-lang.org/1.98.1/alloc/vec/struct.Vec.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>, options: [CheckTableRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.CheckTableRequestOptions.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[CheckTableResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.CheckTableResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Shows information relating corrupt table entriesScans 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.

##### Arguments

<ul>
  <li>`table_names` - List of tables to query. An asterisk returns all tables.</li>
  <li>`options` - The optional parameters; any left unset take the server’s defaults.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/check_table.rs#L67-L78)
pub async fn [check\_table\_raw](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/check-table.md#method.check_table_raw)( \&self, request: &[CheckTableRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.CheckTableRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[CheckTableResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.CheckTableResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`CheckTableRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.CheckTableRequest) to the `/check/table` endpoint.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/check_table.rs#L82-L94)
pub async fn [check\_table\_from\_url](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/check-table.md#method.check_table_from_url)( \&self, url: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), request: &[CheckTableRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.CheckTableRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[CheckTableResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.CheckTableResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`CheckTableRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.CheckTableRequest) to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.


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