setup() | FeatureStore Core Method | Teradata Package for Python - setup() - Teradata Package for Python

Teradata® Package for Python User Guide

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Package for Python
Release Number
20.00
Published
March 2025
ft:locale
en-US
ft:lastEdition
2025-12-05
dita:mapPath
nvi1706202040305.ditamap
dita:ditavalPath
plt1683835213376.ditaval
dita:id
rkb1531260709148
Product Category
Teradata Vantage

Use the setup() function to set up all the required objects for the specified repository.

The function verifies the existence of a repository. If the repository does not exist, it will:
  • Create the repository.
  • Establish the necessary tables, views and triggers.

You must have CREATE privileges to create the database and the corresponding tables within it. See "Roles and Permissions" in Prerequisites to Using FeatureStore.

Optional Parameters

perm_size
Specifies the number of bytes to allocate to FeatureStore repo for permanent space.

Exponential notation can also be used.

Default value: 10e9.

spool_size
Specifies the number of bytes to allocate to FeatureStore repo for spool space.

Exponential notation can also be used.

Default value: 10e8.

Example setup

>>> from teradataml import FeatureStore

Example 1: Set up FeatureStore for repository 'vfs_v1'

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.

Set up 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.

Set up FeatureStore for this repository.

>>> fs.setup(perm_size='50e6', spool_size='50e6')
True
>>> fs
VantageFeatureStore(vfs_v2)-v2.0.0