Example: Using CreateExpansionMaps - Analytics Database - Teradata Vantage

SQL Operators and User-Defined Functions

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-04-05
dita:mapPath
xub1628111590556.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
drp1544241916620
lifecycle
latest
Product Category
Teradata Vantage™

In the following example, the expanded system has 4 nodes and 40 AMPs.

CALL TDMaps.CreateExpansionMaps(4,
                            40,
                            :ContiguousMapString,
                            :OneAmpSparseMapString,
                            :TotalNodesSparseMapString);

Result:

*** Procedure has been executed.
*** Total elapsed time was 1 second.
   ContiguousMapString         PREEXPANSIONMAP_CONTIGUOUSMAP_4NODES
   OneAmpSparseMapString       PREEXPANSIONMAP_1AMPSPARSEMAP_4NODES
   TotalNodesSparseMapString   PREEXPANSIONMAP_4AMPSSPARSEMAP_4NODES