[Bug] warehouse_test fails on local DuckDB files; sql_execute then silently returns 0 rows instead of erroring
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- sql, typescript
Research direction
Start with the warehouse_test and sql_execute entry points and trace how a failed local DuckDB connection is represented and reused. Reproduce the reported sequence, then verify that a valid file opens successfully or that sql_execute surfaces an error instead of returning empty results after a failed test.
Written by the indexing model from the issue text.
Description
Description
warehouse_test fails 100% of the time against local DuckDB file-based warehouses, and — worse — the failure does not surface as a usable error downstream. After a failed warehouse_test, sql_execute against the same connection silently returns (0 rows) for every query, including introspection queries like SHOW ALL TABLES and select * from information_schema.tables, which is an impossible result and gives the agent no signal that the connection is broken.
Steps to Reproduce
- Add a DuckDB warehouse pointing at an existing
.duckdbfile:
This reports success.warehouse_add({"type": "duckdb", "path": "/abs/path/to/warehouse.duckdb"}) - Immediately run
warehouse_testagainst the same warehouse. - Observe the failure (see error text below).
- Run
sql_executewith any query, includingSHOW ALL TABLESor a query againstinformation_schema.tables, against the same connection.
Expected Behavior
Either:
warehouse_testshould succeed against a valid, accessible local DuckDB file (most likely a file-lock or timeout configuration issue when opening the DB), or- If the connection is genuinely unusable,
sql_executeshould refuse to run against a connection whosewarehouse_testfailed, rather than silently returning(0 rows).
Actual Behavior
warehouse_test failed in 7 of 7 invocations observed across independent evaluation sessions, with:
Failed to connect to warehouse '<name>'.
Error: Error: Timed out opening DuckDB database "/path/to/warehouse.duckdb"
After the failed test, every subsequent sql_execute call against the same connection returned (0 rows) — including SHOW ALL TABLES and select ... from information_schema.tables — with no error surfaced. This is silently wrong: an agent has no way to distinguish "empty result set" from "broken connection." In one observed session, the agent then spun for roughly 10,000 seconds before being killed, apparently retrying/investigating with no useful signal. Agents that recovered did so only by abandoning the warehouse tools entirely and shelling out to python3 -c "import duckdb" directly.
Severity: High — this is worse than a loud failure, because it returns a plausible-looking empty result instead of erroring, which can silently corrupt an agent's or user's understanding of the data.
Environment
- OS: macOS (also observed on other platforms in the same evaluation runs)
- CLI version: current
- Warehouse: DuckDB (local file)
- Dominant language
- TypeScript
- Stars
- 813
- Forks
- 134
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 62
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AltimateAI/altimate-code
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
AltimateAI/altimate-code#1323 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
AltimateAI/altimate-code#1288 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
AltimateAI/altimate-code#1285 ·
-
privacy: Altimate Base consent dialog no longer discloses persistent per-installation identifier Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
AltimateAI/altimate-code#1284 ·
-
Difficulty 2/5 Under an hour Newbie friendliness 72/100
AltimateAI/altimate-code#1283 ·
All issues in AltimateAI/altimate-code
Similar issues
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agilepathway/label-checker#640 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
agentic-workflows
Difficulty 1/5 Under an hour Newbie friendliness 85/100
githubnext/rig#534 ·
-
automation missing-model model-sync provider:pioneer
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
anomalyco/models.dev#7701 ·