Example: Collecting Statistics on a Foreign Table 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

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.