Rules and Guidelines for SHOW STATISTICS Requests - Analytics Database - Teradata Vantage

SQL Data Definition Language Detailed Topics

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1184
lifecycle
latest
Product Category
Teradata Vantage™
The following rules and guidelines apply to SHOW STATISTICS requests.
  • Vantage groups columns or indexes having the same USING options together in a single COLLECT STATISTICS request when it reports the SQL text for a database object.

    If there are multiple columns with different USING options, Vantage reports multiple COLLECT STATISTICS requests with the corresponding using options.

  • The VALUES option reports detailed statistics for the specified database object. If you do not specify any columns or indexes, Vantage reports detailed statistics for all of the columns in the database object.
  • When you specify the SUMMARY option, Vantage reports only the table-level summary statistics for the specified table or index.
  • If you submit your SHOW STATISTICS request without also specifying the IN XML option, you can do any of the following things with the reported statistics.
    • Use the detailed statistics reported by the VALUES option as a backup of those statistics.
    • Submit them to Vantage as they are reported.
    • Transfer them to other systems in dual-active environments.
  • If you submit your SHOW STATISTICS request and specify the IN XML option, you can use the output for advanced processing of statistical data using methods such as graphical displays, transformations, and so on.
  • Vantage displays date, time and timestamp data in UTC format.

    No conversion to local time zone is done when statistics are exported.

    Similarly, when imported using COLLECT STATISTICS with VALUES clause, the Optimizer does not do any conversions to UTC. It assumes the incoming data is formatted in UTC. This ensures that the data is consistent during exports made using SHOW STATISTICS requests and imports resubmitting the SHOW STATISTICS output to Vantage operations irrespective of the session time zone.