Block lets agents draft event-ingestion SQL without handing them the release process
In Block’s Sequential Store, agents help onboard event streams into Databricks. The engineering team’s account shows why a selector that runs successfully can still erase useful training data.
Block’s data team uses AI agents to help turn raw product events into a common format for model training. The agents inspect schemas, draft configurations and validate job outputs, but deployment and execution still go through the company’s existing review and authorization process. That distinction is the most useful detail in Block Engineering’s Nov. 3 account: it gives agents a role in writing SQL transformations without treating successful execution as permission to ship them.
A selector can run and still drop the event
The Sequential Store reads archived Kafka events in daily batches and uses configuration-driven Spark SQL jobs on Databricks to standardize them. A config uses SQL expressions called selectors to find fields such as the customer identifier and event timestamp. Block illustrates this with COALESCE across an old and a new field location after a schema migration. It also reports a failure in which the customer and timestamp fields moved into new nested structures. The old selectors returned empty values rather than raising an error, and the event stopped producing rows.
Deduplication poses a different problem. One deposit event reused the same identifier as the deposit moved through multiple states. Deduplicating on that identifier kept only one row per deposit. Block fixed the key by including the state. The team notes that routine count reconciliation can miss this kind of collapse: the customer is still present, but the model sees a shorter activity sequence. The engineering post describes the failure and fix; it does not provide an agent accuracy score or quantify how often the agents catch such errors.
What to check before releasing a generated config
For a team adopting this pattern, review the meaning of the output as well as the SQL. Test the selector against examples from before and after a field moves. Test whether the proposed key preserves distinct states of the same entity. If the change affects the event timestamp, test it in a new version rather than assuming an in-place correction is harmless. In Block’s store, event date is part of the deduplication key, so changing how the date is calculated can cause a reread event to land on a different date and be inserted again. Block handles definition changes by building a new version from a full backfill. The case concerns SQL for ingestion, not a new conversational analytics product, but the lesson carries over: a query that runs is not evidence that it preserved the rows the business meant to count.
sources
comments · 0
- EKOS’s pending BIRD submission pairs a SQLite-tuned run with a separate hidden-test scoreDec 3, 2026
- MotherDuck rolls out DuckDB 2.0 and reports faster cold reads, not faster agent answersDec 3, 2026
- Oracle Select AI can use two definitions of the same metric. Source order won’t break the tieDec 3, 2026