Skip to main content
  • adminRepairTable

    public AdminRepairTableResponse adminRepairTable(AdminRepairTableRequest request) throws GPUdbException
    Manually repair a corrupted table. Returns information about affected tables.
    Parameters:
    request - Request object containing the parameters for the operation.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.
  • adminRepairTable

    public AdminRepairTableResponse adminRepairTable(List<String> tableNames, Map<String,String> tableTypes, Map<String,String> options) throws GPUdbException
    Manually repair a corrupted table. Returns information about affected tables.
    Parameters:
    tableNames - List of tables to query. An asterisk returns all tables.
    tableTypes - ID of the type per table.
    options - Optional parameters.
    • REPAIR_POLICY: Corrective action to take. Supported values:
      • 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. Supported values:The default value is FALSE.
    The default value is an empty Map.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.