Manually repair a corrupted table. Returns information about affected tables.
Parameters
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.
ID of the type per table.
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–
List of repaired tables.
List of repair status by table.
Additional information.