Skip to main content
  • Clears statistics (cardinality, mean value, etc.) for a column in a specified table.

    Parameters

    • Optionaltable_name: string

      Name of a table, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table. A value of ’*’ clears statistics on every user table the caller may read (excluding system schemas, views, and temporary tables); when used, column_name must be empty.

    • Optionalcolumn_name: string

      Name of the column in table_name for which to clear statistics. The column must be from an existing table. An empty string clears statistics for all columns in the table. Must be empty when table_name is ’*’.

    • Optionaloptions: Record<string, string>

      Optional parameters.

    • Optionalcallback: GPUdbCallback

      Optional callback function

    Returns Promise<ClearStatisticsResponse>

    Promise<Types.ClearStatisticsResponse> - Promise resolving to the response