live wire
▸EKOS submits 70.15% on BIRD’s hidden test and 88.33% on Mini-Dev with different Claude models; both entries are pendingBIRD submission PR #270▸MotherDuck rolls out DuckDB 2.0 with async I/O and reports faster cold reads in TPC-H and TPC-DS testsMotherDuck▸ThoughtSpot Spotter starts rolling out answer explanations for token-based results, not AgentQLThoughtSpot▸Snowflake previews Z.ai GLM 5.4 in Cortex Inference, but not in Cortex AgentsSnowflake release notes▸Removing Vietnamese diacritics cut text-to-SQL accuracy by 10.3–37.0 points across four models in an author studyLe Trung et al., Vietnamese MultiSpider artifacts▸Avelis 1.7 adds AI-built dashboards and reruns pinned exploratory SQL under each viewer’s permissionsAvelis release notes▸Aurora MySQL previews cluster groups with one routing endpoint; each query still runs on one clusterAWS What's New▸Rewind-HNSW uses 86.9% less memory than full snapshots in authors’ 20-version testsShea et al., Rewind-HNSW §5.5▸Snowflake previews pausing downstream dynamic table refreshes when data quality checks failSnowflake release notes▸BigQuery previews optional GoogleSQL optimization suggestions in its interactive SQL translatorGoogle Cloud documentation▸Snowflake extends its Tableau and Power BI dashboard migration preview to Azure deploymentsSnowflake release notes▸Google Cloud makes it generally available to unpublish Iceberg data shares from SAP Business Data CloudGoogle Cloud — BigQuery and Lakehouse documentation▸AWS previews organization-wide cost questions in Ops Agent for FinOpsAWS What's New▸Looker updates require API login credentials in the request body, not the URLGoogle Cloud — Looker documentation▸EKOS submits 70.15% on BIRD’s hidden test and 88.33% on Mini-Dev with different Claude models; both entries are pendingBIRD submission PR #270▸MotherDuck rolls out DuckDB 2.0 with async I/O and reports faster cold reads in TPC-H and TPC-DS testsMotherDuck▸ThoughtSpot Spotter starts rolling out answer explanations for token-based results, not AgentQLThoughtSpot▸Snowflake previews Z.ai GLM 5.4 in Cortex Inference, but not in Cortex AgentsSnowflake release notes▸Removing Vietnamese diacritics cut text-to-SQL accuracy by 10.3–37.0 points across four models in an author studyLe Trung et al., Vietnamese MultiSpider artifacts▸Avelis 1.7 adds AI-built dashboards and reruns pinned exploratory SQL under each viewer’s permissionsAvelis release notes▸Aurora MySQL previews cluster groups with one routing endpoint; each query still runs on one clusterAWS What's New▸Rewind-HNSW uses 86.9% less memory than full snapshots in authors’ 20-version testsShea et al., Rewind-HNSW §5.5▸Snowflake previews pausing downstream dynamic table refreshes when data quality checks failSnowflake release notes▸BigQuery previews optional GoogleSQL optimization suggestions in its interactive SQL translatorGoogle Cloud documentation▸Snowflake extends its Tableau and Power BI dashboard migration preview to Azure deploymentsSnowflake release notes▸Google Cloud makes it generally available to unpublish Iceberg data shares from SAP Business Data CloudGoogle Cloud — BigQuery and Lakehouse documentation▸AWS previews organization-wide cost questions in Ops Agent for FinOpsAWS What's New▸Looker updates require API login credentials in the request body, not the URLGoogle Cloud — Looker documentation
nl2sql.ai
releaseOPEN SOURCE

SchemaGate checks SQL rewrites against today’s rows, not tomorrow’s

Version 1.20.0 compares result fingerprints and measures whether a rewrite runs faster. On a live PostgreSQL database, the two queries need not see the same snapshot.

By The News Desk· Nov 27, 2026the quick take — two AI hosts go live when you do

SchemaGate v1.20.0, published Nov. 26, adds a query optimizer that asks a model to rewrite a slow read, then checks the rewrite against the original on the database. By default, the optimizer requires a matching fingerprint and a measured speedup of at least 1.1× to keep a rewrite; if none qualifies, it returns the original SQL. The practical change is that the model proposes candidates, but the database supplies evidence for accepting them.

What the comparison measures

On PostgreSQL, SchemaGate checks a row count and an order-insensitive sum of row hashes inside the database. It also checks an order-sensitive digest when the original has a top-level ORDER BY. For timing it uses the server’s EXPLAIN ANALYZE execution time, taking the best of two timed runs after a warm-up. On SQLite, MySQL, SQL Server and Oracle, the optimizer guide describes a different path: wall-clock timing including fetch, and comparison in Python, with no verified match above 200,000 rows. Those timings are not directly interchangeable with PostgreSQL’s server-side measurement.

The release exposes the checks over MCP as well. explain_query and compare_queries let a client bring its own rewrite without configuring a server-side model. optimize_query runs the model-driven loop on the server. The guide says all three use the same caller-scope checks as run_query. On PostgreSQL, the comparison uses read-only transactions, but it still executes the queries; the maintainers recommend a replica for expensive originals.

A match is evidence, not a proof

The optimizer rejects rewrites that add literals its scanner flags, with 0 and 1 exempted. That helps catch a model hard-coding a boundary it saw in the data. It cannot show that a rewrite handles rows that were absent from the test. A rewrite that changes a LEFT JOIN to an INNER JOIN, for example, could return the same rows when every order has a matching customer and quietly drop orders once an unmatched customer appears. No new literal is needed to make that mistake.

There’s a separate issue on a database receiving writes. The tagged implementation fingerprints the original and candidate in separate transactions. Under PostgreSQL’s default Read Committed isolation, a commit between those reads can change what the second query sees. For a production change, compare against a stable copy, include cases that exercise the query’s assumptions—such as unmatched rows—and review the SQL before swapping it in. A passing comparison is a useful filter, not a substitute for that review.

Filed by The News Desk. Corrections: desk@nl2sql.ai · Our standards →

comments · 0

    Comments are moderated before they appear. Your email is used once to confirm it is you — never shown, never sold. Corrections and questions get an answer from the desk when we have one.