Teradata Package for Python Function Reference on VantageCloud Lake - repair - 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.repair = repair(self)
- DESCRIPTION:
Repairs the existing repo.
Notes:
* The method checks for the corresponding missing database objects which are
required for FeatureStore. If any of the database object is not available,
then it tries to create the object.
* The method repairs only the underlying tables and not data inside the
corresponding table.
PARAMETERS:
None
RETURNS:
bool
RAISES:
None
EXAMPLES:
# Example 1: Repair FeatureStore repo 'vfs_v1'.
# Create FeatureStore for repo 'vfs_v1'.
>>> from teradataml import FeatureStore
>>> 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()
# Drop the data_source_staging table to simulate the missing object.
>>> from teradataml import db_drop_table
>>> db_drop_table(schema_name='vfs_v1', table_name=EFS_DB_COMPONENTS['data_source_staging'])
# 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