Example: Create Profile Using Constant Expression to Specify TEMPORARY Space - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530

This is the original definition of the research_and_development.profile.

CREATE PROFILE research_and_development AS 
DEFAULT DATABASE = it_dev, 
PASSWORD = secret, 
TEMPORARY = 2000000*(HASHAMP()+1); 

The following statement changes the TEMPORARY space for the profile research_and_development to a size based on the constant expression 3,000,000 (HASHAMP()+1). The expression calculates the number of AMPs in the current system and scales the TEMPORARY space for the research_and_development profile to that size.

MODIFY PROFILE research_and_development AS 
DEFAULT DATABASE = it_dev, 
PASSWORD = secret, 
TEMPORARY = 3000000*(HASHAMP()+1);