repair() | FeatureStore Core Method | Teradata Package for Python - repair() - 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 repair() method to check for the corresponding missing database objects that are required for FeatureStore. If any of the database objects is not available, then the database tries to create the object using this method.

The method repairs only the underlying tables and not data inside the corresponding table.

There are no parameters for this function.

Example setup

>>> from teradataml import FeatureStore

Example 1: Repair FeatureStore repo '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()

Let's say some of the objects of the feature store are missing for some reason. Verify the missing object by creating FeatureStore again.

>>> fs = FeatureStore("vfs_v1")
Some of the feature store objects are missing. Run FeatureStore.repair() to create missing objects.
>>> fs.repair()
Successfully repaired the following objects: _efs_data_source_staging
True