Changelog

What changed in each FeatureMesh release. A release ships the featuremesh Python package, the managed registry, the serving runtime and featuremeshd together. Every breaking change comes with the rewrite to apply.

FeatureMesh is before 1.0, so any release may break a query or a stored feature. A removed or renamed form fails with a named error that points at its replacement; nothing changes meaning silently.

0.4.2 (2026-12-01)

Upgrade note: featuremeshd now checks every caller, and nothing is granted by default. Upgrade the registry, create the serving grants (featuremeshd's own account included), then upgrade featuremeshd; a daemon upgraded first refuses every call and runs no view ( Protect the port ).

Breaking changes: language

  • UPPER and LOWER follow the Unicode 15.1 simple case mapping on every backend and on serving: one character in, one out, so UPPER('ß') stays 'ß'. Before, results outside ASCII depended on the backend. PrestoDB, MySQL/MariaDB and RisingWave keep their native functions ( Backend compatibility ).
  • A query's feature chain is at most 256 features deep (UE/QUERY-TOO-DEEP, naming the depth and the deepest feature). Split a deeper chain with a materialized step. Before, about 330 features failed with an internal recursion error.
  • DATE_DIFF in clock units ('hour', 'minute', …) counts the unit boundaries crossed on every backend, as DuckDB does: 10:59 to 12:00 is 2 hours. Serving, Trino, BigQuery and Databricks counted complete elapsed units (1 hour), so batch and serving could differ by one. Plural and non-literal units are refused with a named error.
  • ROUND that carries past DECIMAL(38) is ARITHMETIC-OVERFLOW on every backend, NULL under TRY. ROUND result types now hold their values (more places than the scale keep every integer digit).
  • DROP FEATURES of a source still read by FROM TABLE(src[t]) or a KEYSET query is refused (DROP-FEATURE-DEPENDENCY, naming the readers). Before, the drop succeeded and every prepared statement over that source broke at the next RECOMPILE SERVING.
  • Windowed aggregates over no rows return what their grouped forms return: COUNT_IF is 0, BOOL_AND / BOOL_OR are TRUE / FALSE, and on ClickHouse MIN, MAX, SUM, AVG and the others are NULL (they were 0 or NULL, depending on the backend). A sliding BOOL_AND / BOOL_OR frame is refused on serving (UE/WINDOW-FRAME-NOT-SUPPORTED-DIALECT).

Breaking changes: serving

  • The published featuremeshd image runs only on the managed registry: it accepts a registry answer only with the registry's signature. Upgrade the registry before featuremeshd.
  • Serving SQL is read-only. The statement whose rows a /* SQL */ query returns may only query (UE/SERVING-SQL-READ-ONLY); the statements before it may change only their own in-memory tables (UE/SERVING-SQL-STEP-REFUSED). No SQL reads or writes files on featuremeshd or the embedded engine (CREATE EXTERNAL TABLE on a host path used to work).
  • featuremeshd requires a project token on every port (HTTP, gRPC, Arrow Flight) and checks four new privileges: EXECUTE_STATEMENT (prepared calls, at the statement's namespace), QUERY_SERVING (free-form FeatureQL, direct SQL, client plans and Flight statements, at FM only), INSPECT_SERVING (the rows of SHOW SERVING …) and OPERATE_SERVING (recompute, test controls, RECOMPILE SERVING, /debug/*, and the view leases featuremeshd's own account holds). Refusals are 401 UE/SERVING-CREDENTIAL-MISSING or the registry's token error, 403 UE/NAMESPACE-PERMISSION-DENIED with the deciding rules, and 503 OE/SERVING-IDENTITY-UNAVAILABLE ( Serving privileges ).
  • Free-form queries translate as their caller: registry actions in them are authorized and recorded as the caller, not as featuremeshd.
  • A Flight statement runs once: GetFlightInfo translates it and returns a single-use ticket for that caller; DoGet runs it. A replayed, expired or another caller's ticket is refused.
  • SHOW PERMISSIONS lists the serving privileges: seven at FM, six elsewhere.

Breaking changes: Python library

  • sltest() and sltest_multi() return an SltResult, not a list of dicts: the records are in result.records, with failures(), summary(), ok, dataframe() and to_json() / SltResult.from_json(). Rewrite for r in client.sltest(...) as for r in client.sltest(...).records. The /sltest* HTTP routes and MCP tools still answer with the list of records.
  • sltest_multi is a function only: featuremesh.sltest_multi(runs, fetch_client=...), as featuremesh.bench_multi. The BatchClient.sltest_multi and ServingClient.sltest_multi methods are gone; fetch_client defaults to the first run's client.

Breaking changes: access

  • Service-account and project tokens reach only their own project. Access management, billing, history and staff routes take an identity token. Before, these tokens acted as their owner there.
  • Service-account tokens last 28 days by default. The caller chooses 1 to 365 days with expires_in_days on generate and refresh, and the console offers 7, 28, 90, 180 or 365 days. Registry tokens used to last 365 days whatever the docs said.

Behavior changes

  • Datakey caches are reused more strictly. A cached value is reused (UNION of registered days) only when every aggregate and window in it has a footprint FeatureMesh recognises; otherwise the query computes from the sources, and EXPLAIN gives the reuse_reason (OWN-POPULATION, UNRECOGNISED-FOOTPRINT). The IN / VALUES lowering of keyset SQL applies only to row-local SQL (no GROUP BY, LIMIT, window or aggregate at its top level). Both fix wrong values ( Ranges of days ).

  • CREATE CACHES … AS replaces a partition atomically where the backend can, and registers its rows after the build. One MERGE on DuckDB, BigQuery and Databricks, one statement on Postgres, a transaction on Snowflake and MySQL, a staging table on Trino, ClickHouse and serving: a failed rebuild keeps the previous rows. The rows are registered by the plan's last step before the count, so a failed build registers nothing; the response's caches[].status is PENDING until then. A client that runs the plan itself without a registry connection (pip 0.4.1 and older) still gets them registered at compile time. A build that binds too few days for a window registers nothing and warns CACHE-BUILD-NO-COMPLETE-PARTITION.

  • A stream record without one of its declared fields is a data error (HOOK-RECORD-MISSING-FIELD): counted, sampled and skipped, never run with NULL in its place. Send the field as null when NULL is meant.

  • SHOW SERVING STATUS says when calls fail: a source whose reads fail at call time is FAILING and its statements PARTIAL, back to LOADED after a good read; a statement whose part reads a source that is not loaded is NOT_READY; a statement on a bare warehouse table is NOT_READY at RECOMPILE SERVING, and its calls fail SERVING-TABLE-NOT-MAPPED, naming the mapping to write.

  • A key with a NUL byte gets no row from a PostgreSQL source (MISS) instead of failing the whole call.

  • A cache row naming a table no serving source provides fails UE/CACHE-READ-FAILED on serving.

  • Logger write failures are visible: a logger whose writes fail is FAILING, SHOW SERVING LOGS lists rows only once written, and a failed write counts its dropped rows.

  • Embedded hooks and views that wait for their host loop report WAITING_FOR_HOST, not RUNNING.

  • Batch and serving return the same Python values: ServingClient gives BatchClient's values per declared type, DATE / TIMESTAMP as date / datetime (they were ISO strings) and DECIMAL at its declared scale, at any depth of ARRAY / ROW; SQL NULL is None on every type.

  • Reading a DEPRECATED feature warns (LIFECYCLE-DEPRECATED-REFERENCE, one warning per query naming every deprecated feature). SET STATUS under ON BRANCH is refused (UE/LIFECYCLE-ON-BRANCH). Service-account writes record the account, not its owner's email.

  • Serving calls fire hooks. A hook ON a prepared statement now fires after its serving calls too, unless its new CONTEXT clause leaves them out. A hook created before 0.4.2 has no CONTEXT: add CONTEXT <hook> before upgrading featuremeshd to keep it off serving calls ( Chains ).

  • Inline hook chains are bounded: one run chains at most 4 hook runs without AT, and a hook that serving calls fire without AT cannot have a dependent without AT (UE/HOOK-CHAIN-INLINE). An existing chain over the bound is refused at its next recompile.

  • Duplicate keys fail a materialized view's run. Two rows for one key of a keyed sink fail the run with MV-SINK-DUPLICATE-KEY, naming the sink and the key, and no sink publishes. Before, PostgreSQL kept the first row and Redis the last.

  • A NULL key is a data error on PostgreSQL and MySQL/MariaDB latest sinks, skipped and counted in data_errors, as on Redis. Before, it was written as the key ''.

  • View sinks on PostgreSQL and MySQL/MariaDB need one session from staging to publication. A run stages its rows in a temporary table, then publishes from it on the same connection. Behind a transaction pooler (PgBouncer in transaction mode, the pooled endpoint of hosted services) the run can fail with MV-SINK-STAGE-LOST: point view sinks at a direct connection or a session pooler ( Limits ). PostgreSQL also needs the TEMPORARY privilege, MySQL/MariaDB CREATE TEMPORARY TABLES.

  • A view run overtaken by a newer published run reports OVERTAKEN, not an error. A run whose lease another replica took reports STOPPED, with stopped = 'LEASE_LOST: <holder>'.

  • A view run publishes only once its query has finished. It streams its result to a local spool file (serving.hooks.view_spool_dir), and every sink stages and checks it before any publishes. A failed publication is retried with the same rows. During a rolling upgrade, 0.4.1 and 0.4.2 replicas may alternate runs of one view; each keeps its own rules for duplicate and NULL keys until the upgrade ends.

  • View runs have a memory budget of their own, serving.hooks.view_memory_limit_bytes (1 GiB), apart from the serving pool, and at most serving.hooks.max_concurrent_views (2) run at a time per process: size hooks pods for both ( View memory ).

  • RECOMPUTE answers QUEUED when no view slot is free. With every max_concurrent_views slot taken, it answers at once with STATUS = 'QUEUED', RUN = 0 and the SLOT, before any lease is taken. The run waits (WAITING), takes its lease when a slot frees, and survives a client that disconnects. Poll the status until last.slot equals SLOT ( Run a view from an orchestrator ).

  • featuremeshd.views.runs has more outcome values: ok (published), failed, busy, unchanged, overtaken and stopped. Before, unchanged, overtaken and stopped runs counted as ok.

  • PostgreSQL and MySQL/MariaDB view sinks write a DECIMAL exactly. Before, it went through a double and lost digits past about 15 significant ones.

  • Redis view sinks need Redis 6.2 or later, and an eviction policy that cannot evict the watermark or the run's key set (noeviction or volatile-*). The sink checks both before it writes and fails with MV-SINK-REDIS-UNSUPPORTED otherwise.

  • Hooks and views log run events instead of free-text lines. The WARN lines of a stalled hook (with its details) and of a retried or failed view run are replaced by one record per run, batch, drain or state change, target featuremeshd::precompute, selected by its event field. An error's message is logged only at debug; at info, the record holds its code ( Run events ). Update log alerts that matched the old messages.

New

  • Observability of hooks and materialized views. Run events (view_run, view_run_attempt_failed, hook_batch, hook_drain, hook_state) with outcome, error code, counts, phases and trace_id, exported over OTLP by telemetry.logs.exporters. A trace per view run, a RECOMPUTE continuing its request's trace, and per sampled hook batch and drain, a scheduled reference continuing the trace of the call that queued it ( Traces ). Published freshness gauges read from each view sink's watermark by every replica every serving.hooks.view_freshness_interval (60 s): featuremeshd.views.published.run, .request_time, .compute_time, featuremeshd.views.schedule.period, featuremeshd.views.published.never and .published.read_failures.
  • Chart monitoring: twelve Prometheus alert rules (monitoring.prometheusRule, thresholds in monitoring.alerts, also as the plain rule file files/featuremeshd-alerts.yaml) and a Grafana dashboard (monitoring.grafanaDashboard), both off by default ( Monitor and recover ).
  • Materialized views read Parquet exports on object stores (s3://, gs://, az://, file:// as SOURCE_DB() schemes), through a manifest that names one immutable generation. A run pins that generation, checks the files' columns and row counts, and publishes nothing when the export is broken. A view over object stores only publishes nothing when the generations did not change (UNCHANGED), and every run reports the generation and age of its inputs. Prepared statements, hooks and free-form serving queries cannot read an object store (UE/SERVING-SOURCE-OBJECT-STORE) ( Batch to online ).
  • featuremesh.write_manifest(table_prefix, generation=, run=) writes an export's _latest.json.
  • BatchClient.bench(), ServingClient.bench() and featuremesh.bench_multi() time the registry's benchmark suites: FeatureQL against hand SQL per backend, FeatureMesh serving against hand-written Rust and Python services, with rows checked before timing, ratio intervals, and BenchResult.compare() against an earlier run ( bench ). BenchResult and SltResult are exported from featuremesh.
  • serving.sources.allow_file_urls and serving.sources.object_store_prefixes, and the view settings view_memory_limit_bytes, max_concurrent_views, view_spool_dir, view_spool_limit_bytes, view_batch_rows, view_target_partitions and view_stale_check_every under serving.hooks ( Configuration ).
  • Chart viewSpool: the featuremeshd chart mounts a disk-backed spool volume on the hooks service (sizeLimit 20Gi at /var/lib/featuremeshd/spool), sets serving.hooks.view_spool_dir to it, and sets view_spool_limit_bytes to 90% of sizeLimit ÷ max_concurrent_views. viewSpool.limitBytes overrides it.
  • A view's status shows its phase, rows_so_far, the time it waited for a slot, and for its last run attempts, error_code, inputs, peak_memory_bytes and spool_bytes, with matching metrics ( A view's details ).
  • CONTEXT on a hook: which executions of its statement fire it (hooks that run it, SERVING, or both).
  • serving.hooks.serving_buffer and serving.hooks.serving_rate_cap, and the hooks' dropped counter.
  • ServingClient.execute_prepared_statement(..., as_user=...), and serving refusals decode into errors with their code, hint and decisive_sources.
  • Flight Basic handshake with the token as the password, for JDBC and ODBC drivers.
  • serving.auth settings (caller cache) and serving.hooks.recent_writes_keys_only ( Configuration ).
  • REPLACE-STALE-SERVING-DEFINITION: a CREATE OR REPLACE warns once per stored prepared statement, logger or hook that reads the changed feature. Each keeps its previous definition until it is created again; RECOMPILE SERVING alone does not re-translate it. A hook or logger calls its prepared statement by name, so a change behind that statement warns for the statement only.
  • kafka:// logger sink with a TOPIC clause and the producer settings under serving.logging.kafka ( Write results to Kafka ).
  • Avro stream records, decoded with a schema registry (SCHEMA_REGISTRY properties, SCHEMA_REGISTRY_SSL_CA); a declared type Avro cannot carry is refused (UE/STREAM-RECORD-AVRO-TYPE) ( Streams ).
  • RisingWave as a read-only source (postgres/risingwave): queries compile with Postgres values or a named refusal, and featuremeshd reads it like PostgreSQL. Nothing is persisted in RisingWave.
  • HTTP proxy guide: deploy the analytics proxy in front of Trino, ClickHouse, BigQuery, Snowflake and Databricks; BigQuery and Databricks listings show the FMV views, and Envoy failures show in /health ( Deploy the HTTP proxy ).
  • featuremeshd starts without a config file (HTTP and health only), and serving.memory_limit_bytes caps the serving pool (1 GiB by default).
  • help() without a term opens the documentation's start page; help('your_own_data') shows how to query your own tables or DataFrames.
  • validate() returns structured errors (result.success, result.errors) for parse, inference, translation and backend dry-run failures.

Fixes

  • The Python library refuses DuckDB 2.0.1 (duckdb>=1.5.6,<2.1,!=2.0.1): that release returns wrong rows for some filtered aggregations, plain SQL included. DuckDB 1.5.6 and 2.0.0 are correct.
  • MySQL/MariaDB: queries that read an aggregate row after a shared expression no longer fail with Unknown column 'AGGREGATE_…'.
  • BigQuery: inside TRANSFORM, an outer column named like a field of the element row read the field.
  • ClickHouse: NULL arrays inside packed rows stay NULL (they were []).
  • A MACRO with TRANSFORM and CARRY no longer crashes SQL generation.
  • A CAST of a text literal to DECIMAL(29..38) compiles.
  • Faster translation: deep IF chains about 1 s instead of 16–117 s, and cold translation about 2x faster overall.
  • A bare SHOW SCHEMAS or SHOW TABLES IN <schema> (the Snowflake JDBC driver's metadata calls) no longer fails with INTERNAL-SERVER-ERROR.

0.4.1 (2026-11-27)

Ships together: featuremesh 0.4.1, the managed registry 0.4.1, featuremesh-serving-runtime 0.3.0 and featuremeshd 0.3.0.

Upgrade note: the managed API changed (translations answer a plan of steps). featuremesh 0.4.0 and earlier may fail against the 0.4.1 registry in managed mode. Upgrade with pip install -U featuremesh.

Breaking changes: language

  • Prepared statements refuse unhandled runtime errors. An operation that can raise at runtime (a division by a value that can be zero, LN or SQRT outside their domain, an exact POW, a non-finite EXP, a cast that fails on some values, a named runtime error such as FROM_BASE) fails registration with PREPARED-STATEMENT-UNHANDLED-RUNTIME-ERROR. This covers the returned feature, its captures and the persisted features it reads. Handle it with TRY(...), NULLIF(d, 0) as divisor, a non-zero literal divisor or a widening cast (a CASE guard does not count), or accept that the error fails the call by adding the ACK-XXXX code from the message in a comment of the CREATE.
  • NULL / 0, NULL // 0 and NULL % 0 are NULL on every backend. SUM(x) / COUNT() over an empty group is NULL instead of an error. A non-NULL value divided by zero still raises.
  • ARRAY_JOIN of an empty array and STRING_AGG over an empty set are NULL on every backend.
  • EXTERNAL_KV(...) and EXTERNAL_HTTP(...) reads are ROWs, as table reads are. A read whose value is not a ROW is ROW(value T): append [value], for example EXTERNAL_KV(KEY k FROM KV)[value]. An AS ROW(...) read keeps its own fields.
  • A GROUP BY RELATED in a prepared statement (KEY.RELATED(agg GROUP BY (src[fk]))) is read as RELATED(agg ON src[fk] = KEY) and served by key, instead of being refused.
  • One UNUSED-FEATURE warning per query lists every unused feature. Acknowledging each feature one by one still works; the combined warning has its own ACK.
  • Free-form serving over an online table source (FROM TABLE(SRC[table])) binds that source's keys itself. Remove NESTED k := @BIND_KEYSET(SRC); MISSING-NESTED-BINDING no longer applies to such a source.

Breaking changes: Python client

  • featuremesh[serving] and featuremesh[all] now pin featuremesh-serving-runtime==0.3.0.

Behavior changes

  • A failed source fails the serving call (SERVING-SOURCE-TIMEOUT, SERVING-SOURCE-UNAVAILABLE, SERVING-SOURCE-ERROR) instead of returning NULL. Every read row has the reserved field source_status (OK, MISS, TIMEOUT, UNAVAILABLE, ERROR). To keep answering during an outage, read it in the returned feature and write a fallback: a failed key then gives NULL values and its status, and the call succeeds.
  • Serving sources without a timeout get a default deadline for the whole read in a call, connection included, with no retry: 250 ms for a key-value source, 1 s for a database, 2 s for HTTP. The HTTP connector's former 30 s timeout and retry are gone.
  • Free-form serving queries read a database source by the query's keys (WHERE key = ANY(...)), as prepared statements do, instead of reading the whole table.

New

  • Precompute: streaming hooks and materialized views. A hook keeps features fresh from a stream and writes them to a sink; a materialized view recomputes on a schedule. Both run in featuremeshd and in the embedded Python runtime. See precomputing features and materialized views .
  • Several VARIANT, MACRO, PREPARED_STATEMENT or LOGGER in one CREATE FEATURES, checked in dependency order.
  • Prepared statements:
    • read a source by a key computed from their inputs (RELATED(... ON src[k] = f(INPUT)));
    • answer in request order, one row per request row; an ORDER BY in the statement wins.
  • Serving responses carry a call status (OK, PARTIAL, ERROR) and one entry per failed source.
  • Serving timings: every call reports total_ms, transpile_ms, plan_ms, compute_ms and per-source times, in the HTTP body, a Server-Timing header, the gRPC metadata, the embedded result and a logger's CALL_DETAILS.timings.
  • featuremeshd observability: OpenTelemetry traces (one span per call) and metrics (latencies, calls by status, source failures, logger rows, registry syncs, definitions), each tagged with service.instance.id. A health server answers /health and /healthz on its own port.
  • help() shows snippets as plain FeatureQL you can pass to query(), with prerequisites and the expected result as -- comments.
  • Clearer errors: a type mismatch on an entity-tagged value suggests KEY_TO_SCALAR(x); a RELATED FILTER that compares inner and outer rows says to move the condition into ON.
  • Faster compiles: BIND_VALUES(ARRAY[ROW(...), ...]) of literals compiles as one array feature, so compile time no longer grows with the number of rows.
  • featuremeshd timeouts are configurable: serving.http.request_timeout (default 10 s) bounds a serving call, serving.http.control_timeout (default 5 min) bounds RECOMPILE SERVING, SHOW SERVING, RECOMPUTE MATERIALIZED VIEW and TEST SERVING, and --registry-timeout (FEATUREMESHD_REGISTRY_TIMEOUT, default 30 s) bounds registry calls. A large RECOMPILE SERVING no longer hits the 10 s limit.
  • New refusals with a named error where a backend cannot do the operation: ClickHouse REGEX_EXTRACT_ALL / REGEX_EXTRACT_FIRST with a non-literal pattern (REGEX-PATTERN-NOT-LITERAL-DIALECT), a capture group above 0 of a bound pattern (REGEX-GROUP-INDEX-PATTERN-NOT-LITERAL), and a VARIANT whose arity does not match (VARIANT-ARITY-MISMATCH).

Fixes

  • BIND_VALUES(...) WITH ORDINALITY binds the position column, and FORMAT keeps WITH ORDINALITY.
  • Static VALUES literals of type DATE, DECIMAL, ARRAY with NULL elements and ROW run on every backend.
  • TRY(SUM(x)) of DOUBLE on PostgreSQL returns NULL past the DOUBLE range instead of failing.
  • Trino: a bound column that is NULL in every row translates; TIMESTAMP(6) literals keep their microseconds.
  • DuckDB and serving: a slice whose start is before the first element no longer returns an empty array.
  • ClickHouse: a NULL array read through RELATED ON stays NULL.
  • BigQuery: REGR_SLOPE and REGR_INTERCEPT ignore rows where only one of y and x is NULL.
  • FORMAT keeps an EXPLAIN wrapper.
  • A NULL warehouse slice bound gives NULL; an order-reading window inside TRANSFORM with no ORDER BY reads the array order.
  • Literal BIND_VALUES rows reach the static checks: tied windows warn SELECTION-ARBITRARY, as MAX_BY does.
  • A field of a value that the GROUP BY keys determine counts as determined, so a nested aggregate TRANSFORM over a grouped ARRAY_AGG is no longer reported finer than the GROUP BY.
  • RELATED ON: an input bound non-nested stays an outer key next to another ON.
  • Branches keep a feature's WITH (...) metadata: ALTER on a branch rewrites it, ON BRANCH CREATE keeps it, and ALTER finds a feature that exists only on the branch.
  • Serving: $$ strings keep their case; identifiers are case-insensitive after optimization; EXTRACT_FIELD of a constant, INDEX_MULTI, ELEMENTS_AT_KEY and sliding-frame BIT_AND / BIT_OR return the right values.
  • MySQL and MariaDB: CAST to TIMESTAMP(p) keeps the precision and rounds; MariaDB windowed BIT_AND over a moving frame is right.
  • CLAMP of a NULL is NULL on PostgreSQL, ClickHouse and Databricks.
  • Databricks: ARRAY_POSITION over rows is NULL when nothing matches, not 0.
  • BigQuery: an empty array casts to ARRAY<TIMESTAMP>.
  • Amazon Athena: a cast to TIMESTAMP(0) rounds instead of truncating.
  • FORMAT keeps ESCAPE on LIKE / ILIKE, prints a chained CONCAT_WS as CONCAT_WS, and quotes a ROW field name such as "x-api-version".
  • A MACRO called with the wrong number of arguments raises MACRO-ARITY-MISMATCH.
  • TYPEOF(1.25 + 10::BIGINT) is DECIMAL(23,2): an explicit integer cast widens a decimal to its type's width.
  • Turning a computed INTERVAL into text no longer slows translation down (MAKE_INTERVAL(ROW(...)) over a bound column took about 40 s on DuckDB, Trino and Databricks).
  • featuremeshd: creating or dropping a hook or materialized view replans only the prepared statements that read the changed source. RECOMPILE SERVING after such a change took 19 to 27 s with many statements; it now takes well under a second.
  • Python client: SHOW results keep NULL as None under pandas 3 (they printed nan).
  • featuremeshd over HTTP (/v1/featureql, /v1/query) writes a BIGINT as an exact JSON integer. gRPC rows are still doubles: read IDs above 2^53 over HTTP or Arrow Flight.

Known issue

  • Serving runtime 0.3.0 still runs DataFusion 54: a multi-key ORDER BY can drop a later sort key when an earlier key is computed and the dropped key comes from a GROUP BY. The fix arrives with DataFusion 55.
  • Amazon Athena (engine v3) truncates a TIMESTAMP(6) cast to TIMESTAMP(3) instead of rounding.

0.4.0 (2026-11-18)

Ships together: featuremesh 0.4.0, the managed registry 0.4.0, featuremesh-serving-runtime 0.2.0 and featuremeshd 0.2.0.

Upgrade note: the managed API changed. featuremesh 0.3.x and earlier may fail against the 0.4.0 registry in managed mode. Upgrade with pip install -U featuremesh.

Breaking changes: language

  • A query starts with RETURN, not SELECT. SELECT F1 := 1; fails with SYNTAX-LEGACY-KEYWORD. Write RETURN F1 := 1;. SQL inside FROM SQL(...) is unchanged.
  • Local definitions use DEFINE, not WITH. WITH as a clause keyword fails with SYNTAX-LEGACY-KEYWORD. Replace WITH with DEFINE.
  • PREPARED_STATEMENT(...) WITH (LOGGING_LEVEL = ...) is removed. Log served calls with a LOGGER() instead.
  • The managed registry refuses real passwords written inline in a source definition. Reference the credential with SECRET(provider, name), for example password = SECRET('env', 'PG_PASSWORD'). Placeholder values only raise a warning. See external databases .

Breaking changes: Python client

  • featuremesh.Backend is removed. BatchClient(backend=...) takes a target string family[/variant][@range], such as "duckdb", "duckdb@2.0" or "trino/athena". Anything else raises TypeError. featuremesh.targets() lists the supported targets. The DuckDB dependency is now duckdb>=1.5,<2.1.
  • Documentation tests: BatchClient.test / test_stream are renamed sltest / sltest_stream. sltest() returns a flat list[dict] whose status is PASS, FAIL, SKIP or BLOCKED.
  • sltest_multi: each entry is a run dict {"client": c, "max_workers": n}, with optional labels and exclude_tags. It replaces labels_by_backend and max_workers_by_backend. max_workers is required, both globally and per run. Runs are keyed by client.runner. The HTTP and MCP equivalents require the same fields.
  • Test scheduling follows explicit # depends: components. BATCH_ID is deprecated. Use the run_first_N / run_last_N tags to set the start order.
  • featuremesh[serving] and featuremesh[all] now pin featuremesh-serving-runtime==0.2.0.

New

  • More backends. MySQL and MariaDB (parts), PrestoDB (Java and C++ workers) and Amazon Athena join DuckDB, PostgreSQL, Trino, ClickHouse, BigQuery, Snowflake and Databricks.
  • Targets with versions. Choose a backend version range ("duckdb@2.0") and test against several in one run.
  • Datakey caches across partitions, on all 8 main backends.
  • Serving.
    • Embedded serving runs on runtime 0.2.0 (DataFusion 54).
    • On PostgreSQL views, the source computes RELATED ON (parts).
    • Serving logs: CAPTURE, SINK and LOGGER.
    • New EXTERNAL_REDIS options: FORMAT, COMPRESSION, SCORE_MIN and SCORE_MAX.
    • Prepared statements read sources by key.
  • Backend-agnostic statements. A translation reports backend_agnostic when every backend returns the same result.

Fixes

  • Registry: workers no longer crash when they are recycled. Requests in flight during a recycle no longer get a reset connection.
  • Backends:
    • ClickHouse: NULL arrays and ZIP.
    • PostgreSQL: STRING_AGG delimiters.
    • BigQuery, Snowflake, Databricks and Athena: dialect fixes.
    • BigQuery and Athena: windows PARTITION BY a ROW or ARRAY.
    • Snowflake and Databricks: ARRAY_INTERSECT of rows.
    • FORMAT keeps the field metadata of nested ROWs.
  • Embedded serving:
    • Decimal overflow checks.
    • Prepared-call input errors use the same codes as featuremeshd (SERVER_FILLED_PARAMETER, ROW_COLUMN_COUNT_MISMATCH).
    • A REFRESH SERVING running beside a translation no longer crashes.

Behavior changes

  • ClickHouse queries run with enable_join_runtime_filters = 0, which avoids wrong results in some joins. It affects queries that combine a join with a runtime check. The heaviest join queries can get 1.5x to 5x slower; most queries are unaffected. A narrower fix is planned.

Known issue

  • Serving runtime 0.2.0: a multi-key ORDER BY can silently drop a later sort key. This happens when an earlier key is computed (a ROW_NUMBER() window or an expression) and the dropped key comes from a GROUP BY. Rows that tie on the first key may then come back in an arbitrary order. The results are otherwise correct. The fix is in DataFusion 55, which a later runtime will ship.