Skip to main content
admin_repair_table(table_names=None, table_types=None, options=)[source]

Manually repair a corrupted table. Returns information about affected tables.

Parameters

table_names (list of str) –

List of tables to query. An asterisk returns all tables. The user can provide a single element (which will be automatically promoted to a list internally) or a list.

table_types (dict of str to str) –

ID of the type per table.

options (dict of str to str) –

Optional parameters. Allowed keys are:

  • repair_policy – Corrective action to take. Allowed values are:

    • delete_chunks – Deletes any corrupted chunks.

    • shrink_columns – Shrinks corrupted chunks to the shortest column.

    • replay_wal – Manually invokes write-ahead log (WAL) replay on the table.

    • alter_table – Reset columns modification after incomplete alter column.

  • verify_all – If false 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. Allowed values are:

    • true

    • false

    The default value is ‘false’.

The default value is an empty dict ( ).

Returns

A dict with the following entries–

table_names (list of str) –

List of repaired tables.

repair_status (list of str) –

List of repair status by table.

info (dict of str to str) –

Additional information.