Prerequisites¶
Read this before you install. It lists what the environment must provide, why, how to check it, and what happens without it. Most items are optional: a feature store works with only the first three areas. See What works with nothing optional.
Next: Installation.
Client¶
| What | Why | How to check | Without it |
|---|---|---|---|
| Python 3.10 or later (the project is developed on 3.13; the Docker image uses 3.11) | setup.py declares python_requires=">=3.6", but the required langchain_core>=1.0 needs Python 3.10 or later, so an older Python cannot resolve the dependencies |
python --version |
pip install fails |
pip install tdfs4ds |
Installs the package and its required libraries (see Installation) | python -c "import tdfs4ds; print(tdfs4ds.__version__)" |
Nothing runs |
Extra tdfs4ds[serve] |
The HTTP server and the admin app: FastAPI, uvicorn, LangServe, sse-starlette, httpx[socks], markdown |
pip show fastapi uvicorn |
python -m tdfs4ds.serve cannot start |
Extra tdfs4ds[opik] |
Tracing of agent turns with Opik, when TDFS4DS_TRACING=opik |
pip show opik |
Tracing stays off; nothing else changes |
| Network path from the client to the database: TCP port 1025, the Teradata default | The Teradata driver opens its session there | Open a session with teradataml.create_context(...) |
No connection |
A Teradata context opened before import tdfs4ds |
The package reads the session to find the store database | tdml.get_context() is not None |
tdfs4ds.SCHEMA stays empty; set it by hand (see Connect and configure) |
The driver (teradatasql 20) connects on port 1025 and, when that port does not answer, also tries HTTPS on port 443 (seen in its error messages: "Teradata connection attempt to socket:…:1025 … HTTPS connection attempt to https:…:443"). Open 1025 where you can; 443 is the fallback the driver tries by itself.
Vantage¶
| What | Why | How to check | Without it |
|---|---|---|---|
| Vantage 20 is the version the live checks were run on. Vantage Cloud Lake is also covered by project notes. This is "tested on", not "required" | Behaviour was measured there | SELECT InfoData FROM DBC.DBCInfoV WHERE InfoKey = 'VERSION' |
Other versions are untested |
Temporal tables (VALIDTIME) enabled. Every catalog and FS_T_* table is a VALIDTIME table |
Time travel and history rest on them | tdfs4ds.check_configuration() runs the database_temporal check: a volatile VALIDTIME table, read CURRENT and NONSEQUENCED. setup() runs a probe first and stops before it creates anything |
Every catalog CREATE fails with Error 3706 "Temporal operations are not supported on this system" |
DBSControl field 57 TimeDateWZControl set to 2 or 3 (the default from 16.10 is 2) |
Needed by the AS VALIDTIME and PERIOD(TIMESTAMP WITH TIME ZONE) definitions |
The dbscontrol utility, run by a DBA. The value cannot be read from SQL. The practical proof is the database_temporal check |
Temporal tables cannot be created |
DBSControl field 88 Temporal Behavior left at 0 (the default) |
The package has only run under 0. Under 1, an unqualified read means NONSEQUENCED and a session cannot override it. Value 1 is not validated | dbscontrol |
Unknown behaviour under 1 |
| DBSControl fields 55 and 56 | Not needed. The package never uses NONTEMPORAL |
none | none |
| Permanent space in the store database | Holds the catalogs, the business dictionary, the lineage and the FS_T_* feature tables. History grows with every change of a value |
SELECT * FROM DBC.DiskSpaceV WHERE DatabaseName = '<store>' |
setup() or a run fails on space |
| Spool space for the user | Ingestion stages each batch in a volatile table; datasets read several tables | The user's spool limit in DBC.DatabasesV |
A run fails, for example with Error 2646 "No more spool space". The failure is recorded in FS_FOLLOW_UP |
Room in DBC itself |
Every DDL writes dictionary rows | An administrator checks DBC space |
Error 2644 "No more room in database DBC" on any DDL. This is a system problem; only an administrator can fix it |
No sizes are given: they depend on your data. A process run by segments (FilterManager) stages one segment at a time and needs less spool.
Database user and rights¶
The rights below for the run user were measured on Vantage 20 by revoking each one in turn
(RIGHTS_MEASURED in tdfs4ds/migration/access.py). The rights of the user who migrates objects between stores come from Teradata's rules and were not measured.
| What | Why | How to check | Without it |
|---|---|---|---|
In the store (table) database: SELECT, INSERT, UPDATE, CREATE TABLE, DROP TABLE |
Runs write the feature tables and the follow-up. CREATE TABLE is needed for the staging table; DROP TABLE at the first run of a process |
SELECT * FROM DBC.AllRightsV WHERE UserName = USER (roles: DBC.AllRoleRightsV) |
run() and roll_out() fail with Error 3523, 3524 or 5315 |
STATISTICS on the store database |
COLLECT STATS after ingestion. DROP TABLE does not give it |
Same view | The run completes with a warning and statistics are not refreshed |
DELETE on the store database |
Only for processes using close_absent_entities or valid_time_column. A plain run does not need it |
Same view | Those processes fail with Error 3523; others are unaffected |
SELECT on the view database (the store database itself, unless you set database_view) |
connect() reads the catalog views |
Same view | connect() fails |
DROP VIEW on the database that holds a TimeManager or FilterManager view |
update() and roll_out() replace that view |
Same view | roll_out() fails with Error 3523 |
SELECT on the process view |
run() reads it |
check_access names it |
run() fails with Error 3523 |
SELECT on the source tables or views your processes read |
The process view reads them | Query the view | The process fails |
SELECT ... WITH GRANT OPTION from the table database to the view database, and from the view database to the process-view and dataset databases (when they differ) |
A view reads across databases and passes the right on to its readers. Measured: without it connect() fails (5315), runs fail (3523) and datasets fail (5315) |
DBC.AllRightsV |
Views fail on read |
CREATE VIEW on the view database |
Not needed to run or roll out. Needed to register processes and build datasets | Same view | Registration fails |
SELECT on each dataset view, for each reader |
Readers query datasets | Query the view | Error 3523 for that reader |
SELECT on DBC.TablesV, ColumnsV, IndicesV, PartitioningConstraintsV, StatsV |
connect(), the statistics checks, the sanity checks and the admin app read the dictionary |
SELECT TOP 1 * FROM DBC.TablesV |
Most reads fail open; some checks report "not verified" |
SELECT on DBC.SessionInfoV |
Reads the session query band back | SELECT TOP 1 * FROM DBC.SessionInfoV |
The query band is not read back |
SELECT on DBC.QryLogV |
Resource figures per run (see Optional database features) | SELECT TOP 1 * FROM DBC.QryLogV |
No CPU or I/O figures |
EXECUTE FUNCTION ... WITH GRANT OPTION on the mapping database |
Only when a view outside that database calls a BYOM function or a time-series compression mapping | Query the view | Error 3523 |
Two more cases:
- To read other stores (read federation), the user needs
SELECTon each read-only store's catalog, business-dictionary and lineage views, on itsFS_T_*tables (to build datasets) and on its vector collections. - A view over a
DBCview needsWITH GRANT OPTIONfor an ordinary account (Error 3523).find_feature_storestherefore readsDBC.TablesVwith raw SQL.
Rights are not checked by check_configuration(). See Check it in one call.
Optional database features¶
| What | Why | How to check | Without it |
|---|---|---|---|
DBQL logging for the user, and SELECT on DBC.QryLogV |
CPU, I/O and statement counts per run (followup_resource_usage) |
tdfs4ds.check_configuration(), check database_query_band. It reports whether DBQL is readable and logging, and names the GRANT or BEGIN QUERY LOGGING statement |
Runs show no resource figures. On one tested store, logging was off for the data-science user |
| Session query band allowed | Each execution tags its statements (TDFS4DS_RUN_ID, TDFS4DS_PROCESS_ID, ...) so a run can be joined to DBQL. Set tdfs4ds.QUERY_BAND = False to turn it off |
Same check. Only a refused SET QUERY_BAND fails it |
No join between runs and DBQL |
Vantage Cloud Lake with OFS storage: storage='OFS' on a TimeManager or FilterManager |
Needed when a tdstone2 model is scored through Apply on the Analytical Compute Cluster, which reads from OFS. The scoring view must also join the manager view, not use a scalar subquery | Run the scoring view | Error 6881 "Query is not eligible to run on Analytical Compute Cluster". Ordinary processes are not concerned |
AI features (optional)¶
| What | Why | How to check | Without it |
|---|---|---|---|
An instruct model endpoint. Providers: openai, bedrock, vllm, openai-compatible, azure, mistralai, gcp, litellm. Set INSTRUCT_MODEL_PROVIDER, INSTRUCT_MODEL_MODEL, and the URL, key or region the provider needs |
Chat, generated documentation, query optimization, evaluation | check_configuration(): llm_transport, instruct_model, json_constraints |
These features are off. upload_features(document=True) and optimize_query=True skip without a model |
An embedding model (EMBEDDING_MODEL_*; it falls back to the instruct settings) |
Builds the vector index of the business dictionary | check_configuration(): embedding_model |
No vector search in the chat |
A local Chroma vector index (the default; CHROMA_PATH) |
Stores the index on disk | Build it with build_vector_index() |
Same as above |
Or the Teradata Enterprise Vector Store (VECTOR_STORE_BACKEND='teradata'): service version 2.1.11 or later, and one auth mechanism in TDFS4DS_VECTOR_STORE_AUTH_* (JWT, PAT, Basic or OAuth) |
Index kept in the database | check_configuration(): vector_store_auth, vector_store_service. The service is a server component: upgrading it is an administrator action. Only 2.2.29 (works) and 2.0.5 (fails) were observed; versions between were not tried |
Index calls fail. Use Chroma meanwhile |
A distinct TERADATA_VECTOR_STORE_PREFIX per feature store |
Collection names (<prefix>_objects, _sections, _columns) are shared by the whole service. Two stores with the default prefix tdfs4ds take over each other's collections |
CollectionManager().list() |
One store overwrites another's index |
An MCP server (MCP_SERVER_URL; MCP_SERVER_EDITION community or enterprise). Use langchain-mcp-adapters 0.3.2 or later, which keeps mcp below 2 |
Data rows, samples and charts in the chat. Enterprise needs a credential the database accepts | check_configuration(): mcp_server |
The chat cannot read rows. Other skills work |
INSTRUCT_MODEL_PROXY, INSTRUCT_MODEL_VERIFY_SSL, INSTRUCT_MODEL_CA_BUNDLE |
Only when the endpoint is behind a proxy or an internal CA | check_configuration(): llm_transport |
Calls fail at the transport |
Opik (tdfs4ds[opik], TDFS4DS_TRACING=opik) |
Tracing of agent turns | check_configuration(): tracing |
No traces |
The admin app¶
| What | Why | How to check | Without it |
|---|---|---|---|
Port 8000 (TDFS4DS_SERVE_PORT) free and reachable |
The app, the API and the embedded chat at /chatbot |
Open http://<host>:8000/ |
The app does not start |
Port 7860 (TDFS4DS_SERVE_CHATBOT_PORT), when TDFS4DS_SERVE_CHATBOT is on (default on) |
Standalone chat | Open the port | Only the embedded chat is available |
Port 8080 (TDFS4DS_SERVE_DOCS_PORT), when TDFS4DS_SERVE_DOCS is on |
This documentation, served statically | Open the port | No documentation on that port |
TDFS4DS_TD_HOST with TDFS4DS_TD_USERNAME and TDFS4DS_TD_PASSWORD, or TDFS4DS_TD_LOGDATA for a token logon |
The health monitor, background jobs and the reconnect open their own raw connections. Without credentials the health state is "unknown" and nothing is probed | The app's Parameters page | No background reads, no automatic reconnect |
TDFS4DS_TD_REQUEST_TIMEOUT (whole seconds), recommended |
Bounds a request on a connection the network has dropped, for the connections tdfs4ds opens. A context the notebook opens itself needs tdml.create_context(..., sql_timeout=<seconds>) |
Set it in the environment | A dropped connection can block a request |
jupyter-server-proxy in the Jupyter server environment, for launch_app() on JupyterHub or a managed notebook |
Reaches the app through the notebook's address. A local VS Code kernel needs none | launch_app() reports when the proxy does not reach the app |
The app starts but you cannot open it from the notebook |
A reverse proxy prefix, if any (TDFS4DS_SERVE_ROOT_PATH) |
The app serves its pages under that prefix | Open the app through the proxy | Pages and calls miss the prefix |
| A reverse proxy with TLS and authentication when the app is shared | The app has no login and uses one database identity (see Security) | Open the app from another machine | Anyone who reaches the port has every page |
What works with nothing optional¶
With only the Client, Vantage and Database user areas in place:
- The whole feature store:
setup,connect,upload_features,run,roll_out, TimeManager and FilterManager, datasets (snapshot, history, lags and leads), lineage, statistics checks, removal, relocation, migration and the sanity checks (sanity_check,assess_workflow). - The admin app, except the chat. In the app, a capability that is unavailable stays visible but greyed, with the reason and the fix in its tooltip. The capabilities are database, instruct model, embedding, vector index, MCP, DBQL and temporal.
These need an optional service:
| Needs | Features |
|---|---|
| Instruct model | Chat, generated documentation, query optimization, agent evaluation |
| Embedding model and a vector index | Search in the chat |
| MCP server | Data rows, samples and some charts in the chat |
| DBQL and query band | Resource figures per run |
Documentation can always be written by hand, with no model.
Check it in one call¶
It does not raise and prints no secret. It runs these checks, in order:
| Check | What it tests |
|---|---|
config_loaded |
Environment variables were applied to the package |
database_temporal |
A temporary VALIDTIME table can be created and read |
database_query_band |
Query band can be set; DBQL is readable and logging |
database_time_zone |
The session time zone: a named zone, UTC, or a fixed offset that ignores daylight saving (reported, never failed) |
vector_store_auth |
A Vector Store credential resolves |
vector_store_service |
The service answers, lists collections, and its version is high enough |
llm_transport |
TLS and routing to the instruct endpoint, with no credential sent |
instruct_model |
The instruct model answers |
json_constraints |
Typed output works |
embedding_model |
The embedding model answers and the vector size matches EMBEDDING_MODEL_DIM |
mcp_server |
The MCP server is reachable and a tool call works |
tracing |
Tracing settings |
A twelfth check, vector_store_selftest, writes to the Vector Store. It runs only with selftest=True.
Use live=False for a pass that makes no outbound call, and only= or exclude= to choose checks.
The two database checks need an open Teradata session.
It does not check:
- Rights. Try
tdfs4ds.setup()on a test database, or build a plan withtdfs4ds.plan_migration(...): itsplan["access"]lists the rights, the status of each, and theGRANTstatements as text. The plan never runs them. - The DBSControl settings themselves.
database_temporalproves temporal tables work for this user, andsetup()runs the same kind of probe and stops before it creates anything. Reading the setting is a DBA task. - The Teradata connection. Open it first.