Teradata Package for Python Function Reference on VantageCloud Lake - setup - Teradata Package for Python - Look here for syntax, methods and examples for the functions included in the Teradata Package for Python.

Teradata® Package for Python Function Reference on VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Package for Python
Release Number
20.00.00.08
Published
November 2025
ft:locale
en-US
ft:lastEdition
2025-12-05
dita:id
TeradataPython_FxRef_Lake_2000
Product Category
Teradata Vantage
teradataml.store.feature_store.feature_store.FeatureStore.setup = setup(self, perm_size='10e9', spool_size='10e8')
DESCRIPTION:
    Function to setup all the required objects in Vantage for the specified
    repository.
    Note:
        The function checks whether repository exists or not. If not exists,
        it first creates the repository and then creates the corresponding tables.
        Hence make sure the user with which is it connected to Vantage
        has corresponding access rights for creating DataBase and creating
        tables in the corresponding database.
 
PARAMETERS:
    perm_size:
        Optional Argument.
        Specifies the number of bytes to allocate to FeatureStore "repo"
        for permanent space.
        Note:
            Exponential notation can also be used.
        Default Value: 10e9
        Types: str or int
 
    spool_size:
        Optional Argument.
        Specifies the number of bytes to allocate to FeatureStore "repo"
        for spool space.
        Note:
            Exponential notation can also be used.
        Default Value: 10e8
        Types: str or int
 
RETURNS:
    bool
 
RAISES:
    TeradatamlException
 
EXAMPLES:
    # Example 1: Setup FeatureStore for repository 'vfs_v1'.
    >>> from teradataml import FeatureStore
    # Create FeatureStore for repo 'vfs_v1'.
    >>> fs = FeatureStore("vfs_v1")
    Repo vfs_v1 does not exist. Run FeatureStore.setup() to create the repo and setup FeatureStore.
 
    # Setup FeatureStore for this repository.
    >>> fs.setup()
    True
 
    >>> fs
    VantageFeatureStore(vfs_v1)-v2.0.0
 
    # Example 2: Setup FeatureStore for repository 'vfs_v2' with custom perm_size and spool_size.
    # Create FeatureStore for repo 'vfs_v2'.
    >>> fs = FeatureStore("vfs_v2")
    Repo vfs_v2 does not exist. Run FeatureStore.setup() to create the repo and setup FeatureStore.
 
    # Setup FeatureStore for this repository.
    >>> fs.setup(perm_size='50e6', spool_size='50e6')
    True
 
    >>> fs
    VantageFeatureStore(vfs_v2)-v2.0.0