Repository navigation
Docs: a how-to page on the SQL differences for people who know other SQL - #491
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 astoLowerCase()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)):
claude-haiku-5-5claude-sonnet-5-5By 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.pyruns every block of the page and checks its output, and pins the statements the page calls refused (passes onarcadedb-jvmand onarcadedb, wheels ofmain)uvx pre-commit run --files <changed files>passes