Migration Guide
When to Load
Parent skill routes here for MIGRATE intent: "migrate from Feast", "migrate from Tecton", "migration", "convert feature store", "move to Snowflake feature store".
Prerequisites
../references/api-reference.mdloaded- User has access to the source feature store configuration
Concept Mapping
Feast → Snowflake Feature Store
| Feast Concept | Snowflake Equivalent | Notes |
|---|---|---|
| Feature Store (repo) | FeatureStore (schema) |
FS = a Snowflake schema |
| Entity | Entity |
Same concept, register via fs.register_entity() |
| Feature View | FeatureView (managed) |
With refresh_freq for auto-refresh |
| On-Demand Feature View | FeatureView (external) |
With refresh_freq=None |
| Feature Service | FeatureView.slice() |
Group features via slices |
get_historical_features() |
fs.generate_dataset() |
Point-in-time retrieval |
get_online_features() |
fs.read_feature_view(..., store_type=StoreType.ONLINE) |
Low-latency key lookup |
| Registry (SQLite/DB) | Snowflake metadata | Automatic, no external DB needed |
| Materialization job | Dynamic Table refresh | Automatic, no cron/Airflow needed |
feast apply |
fs.register_entity() / fs.register_feature_view() |
Python API |
feast materialize |
Automatic via Dynamic Table | Set refresh_freq |
feature_store.yaml |
Python code (FeatureStore constructor) | No YAML config file |
Tecton → Snowflake Feature Store
| Tecton Concept | Snowflake Equivalent | Notes |
|---|---|---|
| Workspace | FeatureStore (schema) |
One schema per workspace |
| Entity | Entity |
Same concept |
| Batch Feature View | FeatureView (managed) |
Dynamic Table with refresh_freq |
| Stream Feature View (tiled) | FeatureView + StreamConfig, feature_aggregation_method=FeatureAggregationMethod.TILES (default) |
Registered StreamSource; low refresh_freq (e.g. "1 minute"); enable online serving with OnlineConfig(enable=True, store_type=OnlineStoreType.POSTGRES) |
| Stream Feature View (continuous) | FeatureView + StreamConfig, feature_aggregation_method=FeatureAggregationMethod.CONTINUOUS |
Same setup as tiled (same online-serving config); the online service maintains running aggregates as events arrive (fresher) instead of re-tiling from the offline store |
| On-Demand Feature View | FeatureView (external, refresh_freq=None) |
Or ODT at query time |
| Feature Service | FeatureView.slice() |
Compose from multiple FVs |
get_features_for_events() |
fs.generate_dataset() |
PIT retrieval |
get_online_features() |
fs.read_feature_view(..., StoreType.ONLINE) |
Key-value lookup |
| Transformation (Python) | Snowpark DataFrame + SQL | In-warehouse computation |
aggregation_interval |
feature_granularity (tile size) |
Not batch_schedule — see gotchas below |
batch_schedule |
refresh_freq |
Offline refresh cadence (independent of tile size) |
| Materialization | Dynamic Table refresh | Automatic |
This section stays at the planning/concept level: it maps Tecton concepts to their Snowflake Feature Store equivalents so you can plan the migration.
Streaming & aggregation gotchas
Hard-won constraints when translating source-platform aggregations and streaming feature views. Apply these when writing the migrated feature views.
feature_granularity(tile size) selection. Must divide every aggregation window evenly, be ≤ the smallest window, and be ≥ 1 minute — see Choosingfeature_granularityfor the full rule and the ~90-tiles-per-window target.- Map
aggregation_interval→feature_granularity, andbatch_schedule→refresh_freq. These are independent; do not copy the batch schedule into the tile size. - Backfill DataFrame must survive a fresh session. Build it from a permanent
table/view (
session.table("FQ.TABLE")), never a temp table orcreate_dataframe(local_data). - ALL-CAPS column names in transforms. Snowflake uppercases unquoted
identifiers; mixed-case pandas column names in a
transformation_fn/compute_fnare a common silent cause of online-serving lookup failures.
Custom / In-House → Snowflake Feature Store
| Custom Concept | Snowflake Equivalent | Notes |
|---|---|---|
| Feature tables | Source tables → FeatureView |
Register existing tables |
| ETL pipelines | FeatureView with refresh_freq |
Or external FV if keeping existing ETL |
| Feature registry | Built-in (metadata on schema) | Automatic discovery and versioning |
| Training data joins | fs.generate_dataset() |
PIT-correct by default |
| Serving layer | OnlineConfig + StoreType.ONLINE |
Built-in low-latency serving |
Migration Workflow
Step 1: Inventory Source Feature Store
Ask user:
To plan the migration, I need to understand your current setup:
1. Which platform are you migrating from? (Feast / Tecton / Custom / Other)
2. How many entities do you have?
3. How many feature views/tables?
4. Do you use online serving?
5. Any custom transformations (UDFs, streaming)?
⚠️ STOP: Wait for user response.
Step 2: Map Entities
For each entity in the source system, create the Snowflake equivalent:
# Feast example:
# driver = Entity(name="driver", join_keys=["driver_id"])
# →
driver_entity = Entity(
name="DRIVER",
join_keys=["DRIVER_ID"],
desc="Driver entity (migrated from Feast)"
)
fs.register_entity(driver_entity)
Naming conversion:
- Feast/Tecton:
snake_case→ Snowflake:SCREAMING_SNAKE_CASE - Ensure join key column names match the source data columns in Snowflake
Step 3: Map Feature Views
For each source feature view:
- Identify the source data in Snowflake (must be loaded first)
- Write the transformation as a Snowpark DataFrame or SQL
- Choose pipeline type: managed (Dynamic Table) or external
- Register in Snowflake Feature Store
# Feast example transformation → Snowpark SQL
feature_df = session.sql("""
SELECT
DRIVER_ID,
EVENT_TS,
CONV_RATE,
ACC_RATE,
AVG_DAILY_TRIPS
FROM RAW_DB.PUBLIC.DRIVER_STATS
""")
driver_fv = FeatureView(
name="DRIVER_STATS_FV",
entities=[driver_entity],
feature_df=feature_df,
timestamp_col="EVENT_TS",
refresh_freq="1 hour",
desc="Driver statistics (migrated from Feast driver_hourly_stats)",
)
fs.register_feature_view(driver_fv, version="V01", block=True)
⚠️ MANDATORY CHECKPOINT: For each feature view migration, present the configuration before registering.
Streaming / continuous Tecton FVs: if the source is a
@stream_feature_view(especiallyStreamProcessingMode.CONTINUOUS), you must register aStreamSourceand configureStreamConfig, the backfill-DataFrame rules, and continuous aggregation — details beyond this concept-level guide.
Step 4: Migrate Training Pipeline
Replace source platform's historical retrieval with Snowflake's:
# Feast: store.get_historical_features(entity_df, features)
# →
dataset = fs.generate_dataset(
name="DRIVER_TRAINING",
spine_df=entity_df,
features=[driver_fv],
spine_timestamp_col="EVENT_TS",
spine_label_cols=["LABEL"],
version="V01",
)
Step 5: Migrate Online Serving (if applicable)
Replace source platform's online retrieval:
# Feast: store.get_online_features(features, entity_rows)
# →
from snowflake.ml.feature_store import OnlineConfig
config = OnlineConfig(enable=True, target_lag="15s")
fs.update_feature_view("DRIVER_STATS_FV", "V01",
# Read online
result = fs.read_feature_view(
"DRIVER_STATS_FV", "V01",
keys=[[driver_id]],
store_type=StoreType.ONLINE,
)
Step 6: Validate Migration
Dual-run validation — run both old and new systems in parallel:
- Schema comparison: Verify all features exist with correct types
- Value comparison: Compare feature values for a sample of entities
- Training comparison: Generate training dataset from both systems and compare metrics
- Latency comparison: Measure online retrieval latency
# Validate feature values match
old_features = fetch_from_old_system(entity_keys)
new_features = fs.read_feature_view("DRIVER_STATS_FV", "V01", keys=entity_keys)
# Compare column-by-column
for col in feature_columns:
old_vals = old_features[col]
new_vals = new_features[col]
assert np.allclose(old_vals, new_vals, rtol=1e-5), f"Mismatch in {col}"
Consumer switchover process:
- Deploy new Snowflake-based feature pipeline alongside old system
- Validate feature parity (schema, values, latency)
- Switch consumers one at a time to new system
- Monitor for 1-2 weeks
- Decommission old system
Important Considerations
- Data must be in Snowflake before migration. Load source data first.
- Streaming features (Kafka, Kinesis): Use Snowpipe Streaming to ingest, then register as managed FV with short
refresh_freq. - Custom UDFs: Rewrite in Snowpark Python UDFs or Snowflake SQL.
- External orchestration (Airflow, Dagster, dbt): Can still trigger
ALTER DYNAMIC TABLE REFRESH, or let DT auto-refresh. For dbt, register the dbt-produced table as an external feature view (refresh_freq=None). - Feature parity: Not all source features may translate 1:1. Document any gaps.
Warehouse Sizing
For the generic complexity→size heuristic (simple aggregations, complex joins,
ML transformations) and the DEV/TEST/PROD warehouse layout, see
references/design-guide.md#warehouse-sizing.
This section covers only the migration-specific concern: which warehouse plays
which role in a Feature Store.
Feature Store objects run on warehouses; pick these based on the customer's data volumes (ask for row counts and refresh cadence before recommending a size):
default_warehouse(onFeatureStore): used for metadata operations and ad-hoc reads. A small warehouse is usually sufficient.- Refresh / query warehouse (
FeatureView(warehouse=...)): runs the Dynamic Table refresh for a managed feature view and overridesdefault_warehousefor that FV. Size to the aggregation volume and targetrefresh_freq; larger windows and shorter refresh intervals need more compute. - Initialization warehouse (
FeatureView(initialization_warehouse=...)): the (often larger) warehouse used for the initial build / reinitialization — and, for streaming feature views, the one-time backfill. This is a heavy one-time job, so separating it from the steady-state refresh warehouse avoids over-provisioning ongoing refresh.
Example — pair a small steady-state warehouse with a larger init warehouse:
from snowflake.ml.feature_store import FeatureStore, FeatureView
# Store-wide compute for metadata + ad-hoc reads
fs = FeatureStore(session, database="<DATABASE>", name="<SCHEMA>", default_warehouse="<FS_WAREHOUSE>")
fv = FeatureView(
name="<FEATURE_VIEW_NAME>",
entities=[user_entity],
feature_df=source_df,
timestamp_col="EVENT_TS",
refresh_freq="1 minute",
warehouse="<REFRESH_WAREHOUSE>", # steady-state incremental refresh
initialization_warehouse="<INIT_WAREHOUSE>", # initial build / reinit + stream backfill
)
Right-sizing depends on client volumes, so confirm data scale before committing to sizes. Adaptive warehouses may simplify this in the future (not yet validated for Feature Store here — treat as experimental).
Stopping Points
- ✋ Step 1: Source system inventory
- ✋ Step 3: Before registering each feature view
- ✋ Step 5: Before enabling online serving
- ✋ Step 6: After validation, before decommissioning old system
Output
- Migrated entities and feature views in Snowflake
- Updated training pipeline using
generate_dataset - Online serving configured (if applicable)
- Validation report comparing old vs new system
Next Skill
- If user wants to audit migrated features → Load
monitor/SKILL.md - If user wants lineage analysis → Load
lineage/SKILL.md