Dataset builder¶
Build a dataset: pick an entity, features and process versions, a join type and a kind, then create it.
| Where | Build |
| Who sees it | All four profiles (Business analyst, Data scientist, Data engineer, Admin). |
| Writes to the store | Create, Remove on an existing dataset, and Create of a joined view (Data engineer and Admin; the pane, the preview, the sample and the code are open to every profile). |
| Valid-time banner | Not followed: the builder always builds now. The snapshot, as-of or history choice is the dataset's own data time, a different thing from the banner date. |
What you do¶
Pick an entity, features and process versions, lags and leads, a join type and a kind: current snapshot, as of a date, following a TimeManager, or a history window. The page checks the name, shows the column names and the Python code (Show Python), samples the result without creating it, and creates the dataset (registered, documented, lineage recorded). Existing datasets lists the datasets of the entity with their kind and marks defective ones.
Join with a table or view¶
each dataset of the list has a Join with a table or view… button. It lists the tables and views documented in the business dictionary or attached to the feature store that carry the dataset's key (match full or subset, join columns, whether uniqueness is proven, size, what the join costs, documentation; a Purpose field narrows the list on the documentation). Pick one, choose the join columns and the columns to add (with aliases), name the view (checked against the catalogs: a dataset or process view name is refused) and tick Attach it to the feature store (on) and Check uniqueness before creating (off). Check uniqueness, Preview SQL, Show Python (the exact tdfs4ds.create_joined_view call) and Sample run before anything is created. The sample and the uniqueness count are gated by their EXPLAIN, like the sample of an attached view: above the limits nothing runs, the plan is shown with a Sample anyway button; a low-confidence estimate runs as a job you can cancel; an object larger than SAMPLE_MAX_OBJECT_GB (10) whose primary index is not on the join columns is refused before the EXPLAIN. The result is an ordinary view over the dataset, not a feature-store dataset (no dataset-catalog row).
Defective datasets¶
In the Dataset builder's Existing datasets list, a dataset whose sample fails is marked Defective, with a short cause and the database's whole message:
- the dataset view no longer exists (only its catalog entry remains): the view was dropped and the catalog still lists it;
- an object it reads no longer exists;
- access refused on an object it reads;
- the view no longer compiles;
- the query runs out of spool.
Check all marks them for the whole list without reading data: one
DBC.TablesV read finds the dropped views, then EXPLAIN SELECT * FROM each
remaining dataset.
Remove from catalog¶
Remove from catalog (every profile except Business analyst, primary store only) first shows what goes: the catalog, entity, feature, build and window rows (closed in valid time, history kept), the lineage edges, the business documentation rows with their provenance, and the vector-index entries. The view itself is kept unless Also drop the view is ticked; when the view is already gone, only the catalog entry is removed. The same in Python:
tdfs4ds.remove_dataset("DB_LAB.DS_CUSTOMER") # dry run: what would go
tdfs4ds.remove_dataset("DB_LAB.DS_CUSTOMER", dry_run=False) # view kept
tdfs4ds.remove_dataset("DS_CUSTOMER", dry_run=False, drop_view=True)
drop_dataset(dataset_id) still removes the catalog rows only.
Do the same in Python¶
The (?) button in the top bar opens a standalone script for this page. It asks for the password with getpass, never writes to the store, and can be copied or downloaded.
The generic script lists the features and the datasets that exist, the rights a user needs to read a dataset and the tables or views that can be joined (tdfs4ds.feature_catalog, tdfs4ds.dataset_catalog, tdfs4ds.dataset_access, tdfs4ds.find_joinable_objects, tdfs4ds.create_joined_view as a dry run). The page's own Show Python writes the exact tdfs4ds.build_dataset call for your choices. Creating is a comment.