Example: Collecting Statistics on a Foreign Table Column - Analytics Database - Teradata Vantage

SQL Data Definition Language Syntax and Examples

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
2024-10-04
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
Teradata Vantage™

Although you cannot collect statistics on the payload JSON column, you can collect statistics on specific data in the payload column of the foreign table by using dot notation and specifying an alias for the column data.

This example collects statistics on the City data in the payload column of the foreign table s3_tbl. For the payload.City, the statement specifies the alias City.

COLLECT STATS COLUMN(payload.City) AS City ON s3_tbl;

Cast any columns referenced in this statement to reasonable data types to improve performance of COLLECT STATS.

You cannot collect statistics on a $PATH expression.