Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **`sqlglot_optimized_equivalence` works with sqlglot 29+.** Newer sqlglot
raises when it can't resolve a column without a schema, so every comparison
returned 0. Column validation is now turned off for this schema-less check.
- **"Predictions #" in the per-benchmark summary reports was always 0.** The
`*_eval_summary.md` reports read a count that nothing computed. They now
count each record's prediction unless its inference failed, the same way the
summary JSON and CSV count them. The six published reports are corrected;
no scores change.
- **Beaver's docs name the release it uses.** The `beaver` benchmark is the
209-question `BEAVER-MAY-2025` release, archived at
https://github.com/peterbaile/beaver-may-2025, but its docs linked
beaverbench.github.io. That site now hosts a newer, larger release the
toolkit does not support yet, and the registry's link returned 404. Both
registry copies, the benchmark and database setup docs, and the dashboard
deployment docs now point at the archived release and say where to get its
files and dumps. They also note what's still missing: a converter to the
toolkit's format, and the toolkit's edited copy of the gold SQL
([#37](https://github.com/IBM/text2sql-eval-toolkit/issues/37)).

## [1.6.0] - 2026-09-19

Expand Down
2 changes: 1 addition & 1 deletion data/benchmarks.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"beaver": {
"name": "beaver",
"description": "Beaver benchmark https://peterbaile.github.io/beaver/",
"description": "Beaver BEAVER-MAY-2025 release - 209 questions https://github.com/peterbaile/beaver-may-2025",
"data": "benchmarks/beaver.json",
"schema": "benchmarks/beaver-schema.json",
"predictions": "results/beaver-predictions.json",
Expand Down
18 changes: 11 additions & 7 deletions data/benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ Production benchmarks are defined in [`data/benchmarks.json`](../benchmarks.json

### Beaver
- **ID:** `beaver`
- **Description:** Beaver benchmark for business intelligence queries
- **Size:** 209 questions
- **Description:** Beaver enterprise text-to-SQL benchmark, the `BEAVER-MAY-2025` release
- **Size:** 209 questions across 6 databases
- **Database:** MySQL
- **Source:** https://beaverbench.github.io/
- **Access:** Gated. Its questions, SQL and schema are not included in this
repository, and the public results carry its overall scores only.
- **Setup Required:** Access from the Beaver project, a MySQL database and the
`MYSQL_CONNECTION_STRING` environment variable (see [dbs/README.md](dbs/README.md))
- **Source:** https://github.com/peterbaile/beaver-may-2025 (archived)
- **Not supported yet:** the current Beaver release at https://beaverbench.github.io/
(about 8,000 public questions, retrieval-based settings, its own leaderboard).
Scores from this toolkit are not comparable with that leaderboard. Support is
tracked in [#37](https://github.com/IBM/text2sql-eval-toolkit/issues/37).
- **Redistribution:** none. Beaver's questions, SQL and schema are not included in
this repository, and the public results carry its overall scores only.
- **Setup Required:** The release's files and MySQL dumps, a MySQL database and the
`MYSQL_CONNECTION_STRING` environment variable (see [dbs/README.md](dbs/README.md#beaver))

### Archer (English Dev)
- **ID:** `archer_en_dev`
Expand Down
63 changes: 45 additions & 18 deletions data/benchmarks/dbs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The following databases are required for the benchmarks:
| **BIRD Mini-Dev (PostgreSQL)** | `bird_mini_dev_postgres`, `bird_mini_dev_postgres_test_50` | PostgreSQL | PostgreSQL server + import SQL dump + connection string |
| **Spider 1.0** | `spider_dev`, `spider_realistic`, `spider_dev_test_50` | SQLite | Download `database` folder |
| **Archer** | `archer_en_dev`, `archer_en_dev_test_10` | SQLite | Download database files |
| **Beaver** | `beaver` | MySQL | Gated access from the Beaver project, MySQL server + connection string |
| **Beaver (`BEAVER-MAY-2025`)** | `beaver` | MySQL | Download the release's MySQL dumps, MySQL server + connection string |

**Note:** Test benchmarks (e.g., `bird_mini_dev_sqlite_test_50`) use the same databases as their full counterparts but with smaller question subsets.

Expand Down Expand Up @@ -183,29 +183,56 @@ All 500 gold queries have been verified against a loaded server.

**Used by:** `beaver`

Beaver's questions, SQL, schema and databases are distributed by the Beaver
project under gated access. None of them are published in this repository or in
the toolkit's public results, which carry Beaver's overall scores only. Request
access from the project (https://beaverbench.github.io/) and load its MySQL
databases as it describes, with the question and schema files placed at the
paths `data/benchmarks.json` names.
### Which release

Beaver selects a database per record by substituting `db_id` into the
connection string, so the database named in `MYSQL_CONNECTION_STRING` is only a
default:
The toolkit's `beaver` benchmark is the **`BEAVER-MAY-2025`** release: 209
questions over 6 databases. The Beaver project archived it at
https://github.com/peterbaile/beaver-may-2025 when it published a larger release
at https://beaverbench.github.io/ in May 2026. That newer release has about 8,000
public questions in four datasets, gated on Hugging Face, and is evaluated with
table retrieval and three hint settings. The toolkit does not support it yet, and
its scores on `beaver` are not comparable with the newer leaderboard. Support is
tracked in [#37](https://github.com/IBM/text2sql-eval-toolkit/issues/37).

```bash
export MYSQL_CONNECTION_STRING="mysql://user:password@127.0.0.1:3306/<default-database>"
```
The toolkit does not redistribute any Beaver data — questions, SQL, schema or
per-record results — and its public results carry Beaver's overall scores only.

### Steps

1. **Get the release.** From the archived repository, take `dev_dw.json` and
`dev_nw.json` (questions and gold SQL), `dev_tables.json` (schema) and
`dw_join_keys.json`. Its README links a Google Drive folder with the MySQL
dumps.

2. **Load the dumps.** Import each dump into MySQL under the database name its
questions use — the `db_id` field — which is not always the name inside the
dump. Some dump files name their database after the source system, so rename
the `CREATE DATABASE` / `USE` statements before importing.

3. **Convert to the toolkit's format.** The toolkit reads
`data/benchmarks/beaver.json` and `data/benchmarks/beaver-schema.json`, which
use its own record and schema format rather than the release's. There is no
published converter yet. The toolkit's copy of the gold SQL has also been
edited from the release, so scores computed on the release's SQL can differ
from the published ones. Both are tracked in
[#37](https://github.com/IBM/text2sql-eval-toolkit/issues/37).

4. **Set the connection string.** Beaver selects a database per record by
substituting `db_id` into the connection string, so the database named in
`MYSQL_CONNECTION_STRING` is only a default:

```bash
export MYSQL_CONNECTION_STRING="mysql://user:password@127.0.0.1:3306/<default-database>"
```

With the `databases` profile in `deploy/docker-compose.yml`, list the databases in
`MYSQL_READONLY_DATABASES` so the read-only user can read them.
With the `databases` profile in `deploy/docker-compose.yml`, list the databases
in `MYSQL_READONLY_DATABASES` so the read-only user can read them.

**194 of 209 questions (93%) are executable** once the gated databases are
**194 of 209 questions (93%) are executable** once the release's dumps are
loaded; all 194 gold queries have been verified to run against a loaded server.
The remaining 15 fail with an unknown-database error, because three of the
databases their questions name are not among those the project distributes — a
data gap, not a configuration mistake.
databases their questions name have no dump in the release — a data gap, not a
configuration mistake.

---

Expand Down
Loading
Loading