Skip to main content
clear_statistics(table_name=, column_name=, options=)[source]

Clears statistics (cardinality, mean value, etc.) for a column in a specified table.

Parameters

table_name (str) –

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, input parameter column_name must be empty. The default value is ‘’.

column_name (str) –

Name of the column in input parameter 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 input parameter table_name is ‘*’. The default value is ‘’.

options (dict of str to str) –

Optional parameters. The default value is an empty dict ( ).

Returns

A dict with the following entries–

table_name (str) –

Value of input parameter table_name.

column_name (str) –

Value of input parameter column_name.

info (dict of str to str) –

Additional information.