{
  "id": 7020818,
  "title": "Every text-to-SQL benchmark score you've seen was measured without access control",
  "url": "https://urgent.news/2026/09/12/every-text-to-sql-benchmark-score-youve-seen-was-measured-without",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-12T23:35:16.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/ashish_sinha_5241c7673d93/every-text-to-sql-benchmark-score-youve-seen-was-measured-without-access-control-37h"
  },
  "original_language": "en",
  "account": "Wire report analyzing a new benchmark for text-to-SQL systems that measures their performance under role-based access control (RBAC) restrictions. The benchmark, called Benchmarking Text-to-SQL under RBAC, adds role annotations and policies to three existing text-to-SQL benchmarks.\n\nKey findings:\n- High-performing text-to-SQL systems, especially open-weight LLMs, show sharp performance degradation when RBAC constraints are applied. This is because these systems frequently violate access policies, resulting in \"RBAC-rejected successes\" - SQL queries that are technically correct but violate the access policy.\n- The problem arises because the evaluation metrics used by benchmarks like Spider and BIRD do not account for access control information. These metrics score a query as correct if it returns the right rows, without considering whether the user is authorized to access those rows.\n- The issue stems from the fact that early steps in an NL2SQL pipeline, like selecting which tables to query, do not have access control information. As a result, the system may select a table to query that the user is not authorized to access, leading to a correct query being rejected.\n- The paper does not propose a solution, but highlights the need for access control to be incorporated earlier in the NL2SQL pipeline, before the model writes any SQL. This would require the system to have knowledge of the user's role and access permissions when selecting the tables to query.\n- The authors emphasize the importance of distinguishing between a \"no records found\" result and a \"query denied due to access restrictions\" result, as the latter reveals sensitive information about the database schema.",
  "summary": "Spider, BIRD, LiveSQLBench. If you have evaluated a text-to-SQL system in the last five years you have quoted a number from one of them. All three ask the same question: given a schema and an English question, does the system produce SQL that returns the right rows? None of them ask who is asking. Every score you have seen was produced by a system with unrestricted read access to the entire…",
  "key_points": [],
  "editors_take": "This development reveals that previous text-to-SQL benchmarks were misleading, as top-performing systems often falter when faced with real-world access controls, exposing a critical gap in their evaluation metrics.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}