Skip to content

Docs: a how-to page on the SQL differences for people who know other SQL - #491

Merged
tae898 merged 1 commit into
mainfrom
docs/sql-for-sql-users-page
Nov 25, 2026
Merged

tae898 merged 1 commit into
mainfrom
docs/sql-for-sql-users-page

Conversation

@tae898

@tae898 tae898 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Adds the how-to page "ArcadeDB SQL for people who know other SQL": create only what is missing, delete with DELETE FROM (vertices, links and record ids), call methods such as toLowerCase() on values, and pass a list as one parameter. It is linked from the nav and from the quickstart's next steps.

The page comes from the 165 single-statement errors that language models raised on the ArcadeDB arms of my study of this API; it addresses 160 of them (144 are delete statements that the parser refuses).

What the study measured with the page added to the prompt, against the same build without it (204 episodes per model and arm, details and rules in humemai/mmdbbench#183 (comment)):

model first try before with the page difference, points [95%] reading first attempts with a syntax error, before with the page
claude-haiku-5-5 158/204 169/204 +5.4 [-3.9, +15.2] not distinguishable 32/204 1/204
claude-sonnet-5-5 170/204 186/204 +7.8 [+0.5, +17.6] differs 19/204 0/204

By the rule I fixed before the run (the paired interval over tasks excluding 0 for at least one model, and for none in the other direction) the page is measured to help. The Wilson intervals of the two proportions overlap. Success within 4 attempts showed no distinguishable change.

In-sample limit: the page was written from errors of the same tasks it was tested on. It names no task and no data, but a held-out check on other tasks is still to come, and I would not claim a general gain before it.

Related issues

Closes #490

Docs

New page docs/modules/ROOT/pages/how-to/sql-for-sql-users.adoc, the nav entry, and one line under the quickstart's next steps. No behaviour changes, so no other page needs it.

Checklist

  • tests/test_docs_sql_for_sql_users_page.py runs every block of the page and checks its output, and pins the statements the page calls refused (passes on arcadedb-jvm and on arcadedb, wheels of main)
  • The Antora build of the component passes locally with warnings as failures
  • uvx pre-commit run --files <changed files> passes

Code written from the quickstart fails on statements that other SQL dialects accept and ArcadeDB refuses (DELETE EDGE, DELETE VERTEX <type>, lower()), on a list passed as the only parameter, and on schema statements for things that exist. One page states each with a runnable example, linked from the nav and the quickstart. tests/test_docs_sql_for_sql_users_page.py runs every block on both packages and pins the refused statements.

Closes #490
@tae898 tae898 added this to the 26.12.1 milestone Nov 25, 2026
@tae898 tae898 added the documentation Improvements or additions to documentation label Nov 25, 2026
@tae898 tae898 self-assigned this Nov 25, 2026
@tae898
tae898 merged commit abd6c3a into main Nov 25, 2026
25 checks passed
@tae898
tae898 deleted the docs/sql-for-sql-users-page branch November 25, 2026 01:46
@tae898 tae898 mentioned this pull request Nov 30, 2026
1 of 10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: no page on the SQL differences that break code written from the quickstart

1 participant