check_storage_statistics(domains=None, processes=None, tables=None, add_missing=False, refresh=False, display=True, fix_options=False)
Review the statistics of the feature storage tables; optionally complete and refresh them.
Parameters
domains : list of str, optional
Restrict to the storage tables of these data domains.
processes : list of str, optional
Restrict to the tables these processes (PROCESS_IDs) write.
tables : list of str, optional
Restrict to these tables ('database.FS_T_...').
add_missing : bool
Define the missing statistics (collecting them immediately), with the
options ingestion uses. Later merges then keep them current.
refresh : bool
Re-collect every statistic the table carries (COLLECT STATS ON),
the call ingestion makes after each merge. Multi-column statistics keep
their THRESHOLD 15 PERCENT: Teradata skips them until the table has
changed by 15%, which is why their collection date can be older.
display : bool
Print the report.
fix_options : bool
Re-collect, with the options ingestion uses today, the statistics whose stored options
differ (0.3.7.36). COLLECT STATS ON <table> reuses the options a statistic was defined
with, so a table whose statistics date from before (SAMPLE 25 PERCENT, or no threshold on
the single-column ones) keeps them until they are redefined. The report's OPTIONS column
lists them with the options found and the ones wanted. A redefinition sets the options; a statistic
that now carries a threshold is only recollected when the table has changed enough (measured:
the collection date of an unchanged table stays, PARTITION is always recollected).
With the three flags off (the default) nothing is executed: the call only reads
the data dictionary.
Returns
pandas.DataFrame
One row per table: STATUS is OK, MISSING (some expected
statistics are not defined), NO_STATS, OPTIONS (all defined, some with options older
than the ones ingestion uses), or TABLE_MISSING (the
feature catalog references a table that no longer exists — never acted on); MISSING / EXTRA
list column sets; OLDEST_COLLECTION / NEWEST_COLLECTION bound
the collection dates; ACTION says what was done.