Skip to content

Assess workflow health

A health check answers one question about a feature store: is this pipeline built so that it keeps working? Are the entity keys right, did the processes run in the right order, do the datasets read what exists, and can run() and roll_out() still refresh every process?

These checks are the workflow assessment:

  • Code only. No language model and no agent. They use counts, the data dictionary, the lineage graph, the follow-up table and stored SQL hashes, so the same store gives the same result.
  • They change nothing. A finding names the command that fixes it. It never runs that command.
  • They say what they could not check. A failed read goes to report['unverifiable'] with its reason. It is never reported as a pass.

The consistency checks of Inspect & monitor tell whether the catalogs and the storage line up; this page tells whether the pipeline is well built.

When to run which check

When Run Why
After every change to a process, a view or a manager tdfs4ds.sanity_check() (cheap scope) The cheap checks read the catalogs, the dictionary and the lineage; they take seconds to minutes
Daily, after the scheduled refresh the same call, to a dated file Catches failed or missing segments, runs out of order, stuck RUNNING rows
Weekly tdfs4ds.sanity_check(scope='full') Adds the entity scan and the dataset-row count, which read the storage tables
Before a migration plan_migration runs the cheap scope for you; run scope='full' yourself too A process that cannot be refreshed in the lab will not be in production

Triage order

Read the report from the top. Fix in this order, because each group can explain the next:

  1. Lineage gaps (errors first). A dataset reading a removed process, a view that does not compile: later checks rest on the lineage graph.
  2. Failed runs and run order. segment_failed, completed_on_failed_upstream, ran_before_upstream, stuck_running. Values computed on failed inputs are wrong until recomputed.
  3. Time synchronisation and leakage. different_time_drivers, process_not_on_domain_clock, point_in_time_leak.
  4. Refresh risks. Processes marked at risk or not refreshable: a refresh will not reproduce their data.
  5. Storage and pruning. Skew, primary index, partition alignment: these cost time, not correctness. Entity-key findings are observations to confirm with the business first.

Run them

One call runs the checks and writes the report:

import tdfs4ds

tdfs4ds.connect(database='MY_DATABASE')

path = tdfs4ds.sanity_check('sanity_report.html')   # or 'sanity_report.md'; returns the path

The skill fs-sanity-check generates this code and helps read the report.

The format comes from the file extension, HTML when there is none. Other arguments:

Argument Meaning
fmt 'html' or 'md', to override the extension
processes Process ids or view names. Default: every process
data_domains Restrict to these data domains
scope 'cheap' (default): the cheap checks plus closed_entities, the same checks a migration report runs by default. 'full' adds the entity and dataset scans
display Print the summary and the findings. Default: True

The report opens with an executive summary: an overall verdict, the main issues, and one row per process in execution order, with one cell per dimension: ok, the worst severity found, or n/a when the check did not run.

Get the findings as data

assess_workflow returns the same content as a dictionary, and write_workflow_report writes it. It also adds CSV.

report = tdfs4ds.assess_workflow(
    data_domains=['MY_DOMAIN'],   # None = every domain
    processes=None,               # or a list of process ids / view names
    days=90,                      # follow-up window of the run checks
)

report['counts']                  # {'error': n, 'warning': n, 'info': n}
report['health']                  # the executive summary
report['unverifiable']            # what could not be checked, and why

for f in report['findings']:
    print(f['severity'], f['kind'], f['object'])
    print('   ', f['detail'])
    print('    fix:', f['fix'])

tdfs4ds.write_workflow_report(report, fmt='csv')   # or 'html', 'md'; returns the path

In the app

Run & monitor → Health check (formerly Workflow assessment), with a data-domain list. The page runs the cheap checks. The scan button runs the checks that read the storage tables, on demand. The report downloads as HTML, Markdown or CSV, and the Overview page (formerly Report) has a Workflow assessment section.

Which checks read what

assess_workflow runs every check by default. Pass checks= to choose, or use entity_scan=False, dataset_rows=False and closed_entities=False to skip the storage reads.

Check Looks at Cost
integrity Catalogs, lineage graph, dataset view definitions; EXPLAIN on processes reading a missing object Cheap
network EXPLAIN on every process view, dataset view and view of the lineage graph Cheap, grows with the number of views
order Follow-up table and lineage graph Cheap
leakage Lineage graph and the way each dataset reads time Cheap
segments Follow-up table and FilterManager content Cheap
sql Stored SQL versions against the live SQL Cheap
usage Follow-up table, stored SQL versions, SQL chain Cheap
entity_layout, skew, distribution Data dictionary, EXPLAIN of the staging step Cheap
entity_scan Storage tables: one grouped pass per entity on its largest table On demand
dataset_rows Storage tables: one grouped pass per table the datasets read On demand
closed_entities Storage tables, restricted to the process's features, and the query log. EXPLAIN goes first: above 60 seconds or 10 GB of spool the check reports "not verified" and does not run On demand

tdfs4ds.workflow_assessment.CHEAP_CHECKS is the list without the three storage reads.

The order and input checks need the persisted lineage graph. If it is empty they are listed as not verified. To fill it:

tdfs4ds.rebuild_lineage_graph(all_data_domains=True)

Can run() and roll_out() still refresh a process?

run() and roll_out() refresh a process from what is registered: its view, its managers and its options. What is done around them is not replayed. If a process was used from outside, for example through a loop in a script or with entities closed by hand, a refresh computes nothing new or computes something else, and no error is raised.

Each process gets a verdict in report['refresh']['verdicts'][process_id]:

Verdict Meaning
refreshable No refresh finding, or information only. Read storage_checked: when it is false, the verdict comes from the run history only
at risk At least one warning. A refresh may not reproduce the data
not refreshable At least one error. A refresh only repeats the last state
not checked The check did not run

For one process:

usage = tdfs4ds.process_usage_for(process_id, closed=True)   # closed=True adds the storage read

usage['verdict']        # 'refreshable', 'at risk', 'not refreshable' or 'not checked'
usage['reasons']
usage['findings']       # kind, label, severity, detail, fix
usage['unverifiable']

The same verdict appears:

  • in the executive summary, in the Refresh column;
  • on the process card of the Feature catalog page, in the Refresh by run() and roll_out() block, with each finding explained and a button that runs the storage read;
  • in the REFRESH column of the Processes sheet from tdfs4ds.export_feature_catalog.

Stay inside the framework

The loops inside run() (over FilterManager segments) and roll_out() (over dates) belong to the framework and are fine. Do not build these around them:

Do not Why Do this instead
Loop over dates around run(), setting FEATURE_STORE_TIME There is no TimeManager, so roll_out cannot replay the dates A TimeManager and one roll_out(process_list, time_manager=tm)
Loop calling roll_out(time_id_start=i, time_id_end=i) with a custom step between dates The next roll_out does not replay the step One roll_out over the range, with the step's logic in the process view or an option
Close validity periods with your own DELETE or UPDATE on FS_T_* It leaves gaps that a replay does not reproduce close_absent_entities=True
Loop over values around fm.update() and run() run() alone computes one segment upload_features(..., filtermanager=fm): run() goes through the segments
REPLACE VIEW with a new literal, or upload_features again, for each date or value run() only repeats the last value Read the value from a TimeManager or a FilterManager
Reload a parameter table between runs It is a manager the framework does not know A TimeManager or a FilterManager
Generate dates with a recursive query It is a loop hidden in SQL A TimeManager, or valid_time_column when the source holds the history
Write to FS_T_* or to a catalog table The values no longer come from the process run; remove_feature, remove_process, relocate_features

These are fine: a scheduler calling run once per date, time_id_start and time_id_end to replay a range, and tm.update() or fm.update() to look at one date or segment.

What the refresh checks can see

Finding Detected when Severity Check
external_time_loop One execution wrote at least 3 business dates for a process with no TimeManager warning usage
external_segment_loop One execution completed the same business date at least 3 times for a process with no FilterManager warning usage
view_rewritten_between_runs At least 3 stored SQL versions differ only by literals, with about one run each error usage
recursive_query WITH RECURSIVE or RECURSIVE VIEW in the SQL chain. Warning when it only generates dates or a sequence, information when it walks a table warning or info usage
closed_without_flag close_absent_entities is off and entities have only closed validity periods, none open warning closed_entities
validity_gap_without_flag close_absent_entities is off and an entity's history has a gap. A run leaves no gap, so something outside it ended a period warning closed_entities
writes_outside_run The query log shows writes to a process's FS_T_* table with no TDFS4DS query band info, does not change the verdict closed_entities

Limits:

  • A loop whose runs fall in separate executions, such as a new session per date, looks like a schedule. A schedule is good practice and raises nothing, so this loop raises nothing either.
  • A loop calling roll_out one step at a time looks like a roll_out. Only what its custom step did to the storage tables shows, through validity_gap_without_flag, closed_without_flag and writes_outside_run. That needs the closed_entities check.
  • writes_outside_run stays information because a removal, a relocation or a run with tdfs4ds.QUERY_BAND=False writes the same way. It also sees only what the query log recorded.

All findings

Severity is what the finding reports. Fix is what the finding names; run it yourself after reading it.

Lineage: does each object still have what it reads?

Finding Meaning Severity Fix
dataset_reads_removed_process A dataset reads the values of a process no longer registered. It returns what that process last wrote, never refreshed error Rebuild the dataset, or plan_removal
dataset_reads_removed_feature A dataset reads a feature no longer in the catalog error Rebuild the dataset, or plan_removal
dataset_reads_stale_table A dataset reads a feature from a table the catalog no longer uses for it. The view compiles and returns frozen values, then none error rewrite_dataset_tables(dataset, dry_run=True) or build_dataset
dataset_reads_missing_table A dataset reads a storage table that no longer exists error Restore the table, or rebuild the dataset
dataset_reads_other_store A dataset reads another store's tables, which were not checked info Attach that store read-only and assess again
dataset_feature_no_rows Check dataset_rows: a feature has no stored row at the valid time the dataset reads. An INNER dataset returns no row, a FULL OUTER column is all NULL error (INNER), warning (FULL OUTER) run(pid), or rebuild the dataset without the feature
relocation_reverted Check dataset_rows: a relocated feature was written to its old table by an older client, so its history is split error Run the relocation again: plan_relocation, then relocate_features
feature_without_process A registered feature that no process computes any more warning Register a process computing it, or plan_removal
process_view_missing, dataset_view_missing A catalog row whose view is gone error Restore the view, or plan_removal
process_reads_missing_object, process_view_broken A process view reads an object that no longer exists, or no longer compiles error Restore the object, or plan_removal
process_reads_inaccessible_object A process reads an object this user cannot see, and its EXPLAIN is refused warning The GRANT the finding names
process_reads_unregistered_dataset A process view reads a dataset view no longer in the catalog warning restore_dataset_catalog(dry_run=True), or rewrite the view
lineage_edge_to_unknown The graph links a dataset to a view that is not a registered process info rebuild_lineage_graph(objects=[...], check=False)
view_does_not_compile Check network: EXPLAIN fails. Only the root failure is reported, with what it stops error Fix or restore the view
view_not_verifiable EXPLAIN is refused for lack of a right. The view may be fine; nothing below it was checked warning The GRANT the finding names
lineage_stops_no_access The lineage stops at a view whose definition this user cannot read warning The GRANT named, then rebuild_lineage_graph(objects=[...], check=True)
lineage_not_recorded The view reads objects the graph lacks warning rebuild_lineage_graph(objects=[...], check=True)
lineage_stops_unreadable SHOW VIEW fails on a real object. A SQL word the graph stored as a name, such as CAST, is not reported warning Read the message in the finding
lineage_isolated A process or dataset with no lineage link: nothing is known of what it reads or what reads it warning rebuild_lineage_graph(objects=[...], check=True)
lineage_split The lineage is several separate networks. Independent pipelines are expected info Check that no process is missing a link
process_not_read No dataset or process reads this process info Build a dataset on it, or plan_removal
detached_branch Views and tables that no registered process or dataset reaches, usually left by a removal info Drop them, then rebuild the graph
views_not_compiled Views over the compilation limit were not compiled info Run the check on a smaller scope

The report's Lineage section always says what it checked, also when it found nothing. Removal fixes go through a script that is a dry run by default: tdfs4ds.plan_removal, then tdfs4ds.write_removal_script.

Entity keys

A dependency between entity columns is observed in the data, not a rule. Confirm it with the business before you change an entity.

Finding Meaning Severity Fix
redundant_key_column Check entity_scan: over the whole history, the other key columns are unique without this one. A lookup by the real key cannot use the primary index warning, info under 100 entity tuples Register the processes with the smaller entity_id; keep the column as a feature
key_column_changes_over_time Check entity_scan: determined by the other columns now, but it changed over time, and each change started a new entity warning, info under 100 entity tuples Remove it from entity_id and store it as a feature
entity_key_superset Two entity keys of one domain, one containing the other: features of one entity may be split info Run the entity scan, then decide

Order and time

Finding Meaning Severity Fix
ran_before_upstream At a business date, the process started before its upstream finished warning generate_execution_script, then re-run with force_compute=True
upstream_recomputed_after The upstream was recomputed after the process ran: the process is stale warning roll_out over those dates with force_compute=True
completed_on_failed_upstream The upstream failed or wrote nothing, and the process still completed error Re-run the upstream, then the process with force_compute=True; use check_upstream=True
upstream_missing_at_date, ahead_of_upstream On one timeline, the process computed dates its upstream has not warning Roll the upstream out first
mixed_time_modes One end of a dependency follows a TimeManager, the other real time or another mode warning or info Drive both with one TimeManager
different_time_drivers The two ends follow different managers info unify_time_managers([...], dry_run=True) if they must stay aligned
date_computed_before_earlier_date A date of the process's TimeManager whose latest run is older than a run at an earlier date (the last date built first, then a roll-out without force_compute). Only the manager's dates count: a scheduled run(data_domain=...) at the database clock is not part of the history warning roll_out(..., time_id_start=1, force_compute=True); the fix names the first TIME_ID out of order
process_not_on_domain_clock The data domain has a clock and this process reads another calendar or none warning align_domain_time_managers(domain, process_ids=[pid], dry_run=True)
processes_share_time_filtered_view Processes read the clock through one shared view, so none can have its own cursor warning Move the filter, or clone_shared_view_time_manager(view, dry_run=True)

Inputs in time

Finding Meaning Severity Fix
point_in_time_leak A TimeManager process reads a dataset at the current valid time: at a past date, it computes from today's values error build_dataset(..., time_manager=tm)
fixed_as_of_input The dataset read is frozen at one date warning Rebuild it on the process's TimeManager
input_other_time_manager The dataset read follows another manager warning Rebuild it on the process's TimeManager

Runs

Finding Meaning Severity Fix
segments_missing FilterManager segments not computed at the latest date warning run(pid): only the missing segments run
segment_failed A segment failed at the latest date error Fix the cause, then run(pid)
hollow_run A run wrote no rows info Check the source and the filter
interrupted_run A follow-up row was left RUNNING and the same process, business date and segment ran again later (any date, not only the latest). The finding names the interrupted run's start and RUN_ID and what the later row recorded. It is also raised, as a warning, for a RUNNING row with nothing after it when no session of the database carries the run any more (read from DBC.SessionInfoV) info (warning when nothing ran after it) tdfs4ds.close_interrupted_runs(dry_run=True) lists the rows, dry_run=False closes them. A lost row with nothing after it is first recomputed: run(pid, force_compute=True), or, when it belongs to a roll-out (rows at several business dates under its RUN_ID), roll_out(data_domain=..., time_id_start=<its date>, force_compute=True), which also computes the later dates and the processes downstream
stuck_running A RUNNING row with nothing after it, at any business date, older than max(1 h, 10 x the longest COMPLETED run of the process). Pass stuck_hours= to raise the floor. When the sessions cannot be read, only the age decides warning Check whether the session died, then run(pid, force_compute=True)

Process SQL

Finding Meaning Severity Fix
sql_drift The SQL in the database differs from the stored version warning capture_process_sql([pid], dry_run=False), or a run
history_mixes_versions The stored history was computed under several SQL versions info If it must be consistent, roll_out(..., time_id_start=1, force_compute=True)

Storage and pruning

A primary index or a partitioning is recommended per entity, never for one process. A dataset joins the tables of an entity on the AMP only when they share one index. To change one, see Relocating features.

Finding Meaning Severity Fix
storage_skew A storage table concentrated on a few AMPs warning Check the entity columns
entity_column_type_mismatch An entity column typed differently across tables: joins convert and rows leave their AMP warning Cast in the process views, then register again
entity_pi_inconsistent The tables of one entity use different primary indexes: datasets joining them redistribute warning One primary_index= for every process of the entity
pi_not_aligned_with_source The largest source is hashed differently from the storage tables. A warning when EXPLAIN shows the aligned index would keep rows local warning or info Same index for the whole entity
partition_not_aligned_with_source The largest source is partitioned on an entity column; the storage tables are not info partitioning=
segments_rescan_source The FilterManager segments do not follow the source's partitioning: each segment reads all its partitions. Whatever the size: on a small source the warning says it does no harm today, but it will if the table grows warning Segment on the partitioning column, if the business logic allows it
segment_filter_defeats_pruning The filter names a partitioning column but, even with the value known, the plan reads all rows warning A scalar filter on the bare column
time_filter_by_join, segment_filter_by_join The view reads its TimeManager or FilterManager through a join: explicit, a comma list, or a derived table. The query may not work as intended: a manager holding two rows multiplies the view's rows, where a scalar subquery fails warning A scalar filter, e.g. WHERE src.d <= (SELECT BUSINESS_DATE FROM tm). Exception: views scored on the ACC need the join
time_filter_not_scalar, segment_filter_not_scalar The view reads the manager with IN or EXISTS, or through an intermediate view selecting from it warning A scalar filter in the view that uses the value
segment_filter_off_hierarchy The FilterManager filters a lower partitioning level of a source (any partitioned source, whatever its size) and nothing filters a level above it. Partitions are still eliminated, but each segment reads a slice across every partition of the skipped level (measured, 365 days x 5 regions: 366 partitions on the region alone, 5 on the date, 1 on both). A TimeManager's scalar filter on the level above counts. On a small source the warning says it does no harm today, but it will if the table grows, as it may when a process built on a small lab table is migrated to production warning Add the higher level to the FilterManager's columns, or filter it with the TimeManager, if the business logic allows it
partitioned_source_read_whole The plan reads every partition of a partitioned source, the largest one included. It is skipped only when the TimeManager scalar is on one of the source's partitioning columns, or the FilterManager segments follow its partitioning (those cases have their own finding). A manager that bounds only another column (typically a key table's date, while the historian is joined with no time bound) does not cover the historian, and this finding says so warning with a manager, info without Bound the source on its partitioning column
time_filter_not_on_partitioning The business date is compared with a column the source is not partitioned on. Whatever the size, with the same note on a small source. When the plan also reads the source whole, the "reads every partition" sentence is left to partitioned_source_read_whole info Compare it with the partitioning column, if that column carries the same date
time_filter_defeats_pruning A scalar business-date filter on the partitioning column still prunes nothing. Also raised from a static plan when the plan casts the partitioning column to a TIMESTAMP ... WITH TIME ZONE to compare it with the scalar (a raw h.TD_TIMECODE < (SELECT BUSINESS_DATE ...) against a TIMESTAMP(0) column): the column is cast, so no partition can be eliminated warning Keep the column bare and give the scalar the column's type: CAST(SUBSTR(CAST(BUSINESS_DATE AS VARCHAR(40)),1,19) AS TIMESTAMP(0))
fs_partition_not_on_filter Segments on entity columns, but the storage tables are not partitioned on them info partitioning=

Reading the details

Lineage network (since 0.3.4.0, check network). The lineage seen as a whole, from the persisted lineage graph and the data dictionary:

  • Every view is compiled. EXPLAIN SELECT * FROM <view> runs on every process view, dataset view and view the lineage graph holds (not only on the processes reading a missing object). Only the views whose own inputs compile are reported: when a view fails, every view reading it fails too, and they are listed under it with the processes and datasets it stops. An error the database did not give (a lost session) is listed under Not verified, never as a broken view.
  • Is the network in one piece? The connected networks of the lineage, with their processes, datasets, views and tables. Independent pipelines are expected to be separate; a process meant to read another one should be in its network. A process or dataset with no lineage link at all is a warning (rebuild_lineage_graph(objects=[...], check=True) records it). Names of the graph that are not database objects (SQL tokens) are left out, so they cannot join two networks.
  • Dead branches. A process nobody reads (no dataset, no other process), the views and tables of the lineage that no registered process or dataset reaches (usually left by a removed process), and the branches the gaps above leave.
Kind Meaning
view_does_not_compile EXPLAIN fails on the view; the other views, processes and datasets it stops are named.
lineage_split The lineage is several separate networks (info).
lineage_isolated A process or dataset with no lineage link.
process_not_read A process whose view no dataset or process reads: a dead end.
detached_branch Views and tables of the lineage that no registered process or dataset reads.

The Lineage section of the report always shows this block, also when nothing is found, so a clean result says what it covered.

Primary index and partitioning against the sources. Ingestion stages the view's result in a volatile table hashed on the storage table's primary index, then merges it. When the largest source table is hashed on the same columns, the rows never leave their AMP. The assessment follows each entity column through the view SQL to the source column it comes from (unchanged, no CAST), reads the primary indexes and partitioning from the data dictionary, and EXPLAINs the staging step with the current index and with the aligned one (EXPLAIN only, nothing is created):

Finding Meaning
pi_not_aligned_with_source The largest source is hashed on columns the view passes as entity columns, the storage tables otherwise. A warning when EXPLAIN shows rows redistributed now and local with the aligned index; nothing when EXPLAIN shows no difference.
entity_pi_inconsistent One entity's storage tables use different primary indexes.
partition_not_aligned_with_source The largest source is partitioned on a column passed as an entity column; the storage tables are not.
segments_rescan_source A FilterManager segments on columns that do not follow the largest source's partitioning, so each segment reads all its partitions.
segment_filter_defeats_pruning The segment filter names a partitioning column, yet with the segment value known the plan still reads every row: the view SQL prevents pruning.
time_filter_by_join, time_filter_not_on_partitioning, time_filter_defeats_pruning The same questions for the TimeManager's business date.
fs_partition_not_on_filter Segments on entity columns that do not partition the storage tables.

How pruning is judged. First the data dictionary: does the FilterManager or TimeManager filter name a partitioning column of the source? A filter on one partitioning level is enough. Measured on a source partitioned by day and by category, a category filter alone read 365 of 2,555 partitions, a date alone 7, and both a single one. Then the plan, with the manager's value known: DYNAMIC EXPLAIN with incremental planning forced (DynamicPlan=SYSTEMX, the session's query band is restored afterwards). A static EXPLAIN leaves the subquery's value as a parameter and shows an all-rows scan even for well-written SQL. When the filter matches the partitioning but this plan still reads every row, the process SQL is what prevents pruning: a function or CAST on the column, an OR with another column, a type mismatch. On a PTI table the pruned read is worded "from a time range of".

Favour scalar filtering for both managers, with the column left bare and any arithmetic on the manager's side:

WHERE src.Category = (SELECT Category FROM DB.CATEGORY_FILTER)          -- FilterManager
  AND src.Date_transaction <= (SELECT BUSINESS_DATE FROM DB.BUSINESS_DATE) -- TimeManager

The one exception is a view scored on the Analytical Compute Cluster (tdstone2 with Apply), which needs a JOIN to the manager: a scalar subquery there is Error 6881.

Two rules shape these recommendations:

  • Per entity, never per process. The primary index is part of the storage table name, and a dataset joins the tables of an entity on the AMP only when they share one index. Changing it means removing the process and its features and registering again with primary_index= (registering the same view again keeps the recorded index), then replaying the history.
  • Segmenting on the source's partitioning is the most efficient segmentation, when the business logic allows it: a segment must hold every row its computation needs (no aggregation or window across the partitioning column).

Executive summary. The report opens with the verdict (how many processes have an error, a warning, information only, nothing to report), the most frequent issues, and a health grid. The grid has one row per process, grouped by execution wave (the order the execution plan runs them in), and one column per dimension: lineage, entity keys, order and time, inputs in time, runs, process SQL, storage and pruning. Each cell shows the worst severity found. A cell reads not checked when its check did not run or could not run for that process, for example the entity scan, or a process absent from the lineage graph.

tdfs4ds.write_workflow_report(report, fmt='html')   # or 'md', 'csv'; returns the path

In the admin app: Run & monitor → Health check, with a data-domain list (↻ re-reads it). The entity scan and the dataset-feature row count run on demand with Scan entity keys. The report exports as a standalone HTML page, Markdown or CSV. The Overview has a Workflow assessment section. Notebook A3 - Assessing the workflow walks through the main findings.

Before a migration

plan_migration runs these checks first, on the source store and only on the processes it would promote. A process that cannot be refreshed in the lab will not be refreshable in production. The findings are the first section of the migration report.

plan = tdfs4ds.plan_migration(
    ['<process, dataset or feature>'],
    source='LAB_DATABASE',
    sanity='cheap',            # the default. 'full' adds the entity and dataset scans; False skips and says so
)

plan['sanity']['findings']
plan['sanity']['verdicts']     # refreshable, at risk, not refreshable, per process
print(tdfs4ds.render_migration_report(plan))
  • 'cheap' is the cheap checks plus closed_entities, because a custom step around roll_out shows nowhere else. Its reads are EXPLAIN-gated.
  • A finding never blocks migrate_objects. Approvals are about conflicts. The report flags the processes to look at.
  • In the app: the Migration page, field Sanity check of the processes.

To confirm the rights after the GRANTs were applied, run this as the target user. It reads only, and each refusal carries the GRANT that lifts it:

tdfs4ds.check_access(plan)

With several stores attached

When the same object exists in several attached stores, the first store in the list wins. To list these collisions:

conflicts = tdfs4ds.store_conflicts()   # KIND, NAME, WINNER_STORE, OTHER_STORES, DIFFERS, DETAIL...

conflicts.attrs['stores']               # the winning order
conflicts.attrs['unverified']           # the reads that failed

The kinds are feature, process_view, dataset, documentation and lineage. With one store, nothing is read and the result is empty. The Report page shows the same list.

See also