Example: HELP STATISTICS for a Geospatial Column - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Consider the following COLLECT STATISTICS request, where o_spatial_location is a geospatial column.

     COLLECT STATISTICS 
       COLUMN o_orderdatetime,
       COLUMN o_orderkey,
       COLUMN o_spatial_location
     ON orders;

The following HELP STATISTICS request returns summary statistical information for orders that reports information for the geospatial column. This information includes the table cardinality known to the Optimizer indicated by the row with column value *.

Because the concept Unique Values is meaningless for Geospatial data types, HELP STATISTICS returns the total number of base table rows in the position taken by a geospatial column, o_spatial_location.

     HELP STATISTICS orders;
     *** Help information returned. 3 rows.
     *** Total elapsed time was 1 second.
Date      Time       Unique Values        Column Names
-------- -------- -------------------- ----------------------------
10/08/16 18:14:36               100        *
10/08/16 18:10:48               100        o_orderdatetime
10/08/16 18:05:44               100        o_orderkey
10/08/16 18:19:08               100        o_spatial_location