Skip to content

docs(26.12.1): SQL statements (CREATE, DELETE, SELECT, TRAVERSE, ALTER, buckets) (consolidates 10 PRs) - #704

Open
robfrank wants to merge 29 commits into
mainfrom
docs/26.12.1-consolidated-sql-statements
Open

robfrank wants to merge 29 commits into
mainfrom
docs/26.12.1-consolidated-sql-statements

Conversation

@robfrank

@robfrank robfrank commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Consolidates the 26.12.1 updates to the SQL statement reference pages: SELECT (UNWIND expressions, OFFSET, LIMIT ALL / FETCH FIRST), MATCH, CREATE VERTEX/EDGE, DELETE, TRAVERSE, ALTER PROPERTY, CREATE/ALTER/DROP TYPE, buckets, plus the related export/import, function, index and vector notes from the #588 batch.

Superseded PR Issue Change
#534 ArcadeData/arcadedb#11442, ArcadeData/arcadedb#11563 SELECT: UNWIND <expression> AS <alias>, evaluated against the record
#553 ArcadeData/arcadedb#12426 CREATE VERTEX/EDGE need a type, DELETE RETURN COUNT removed, TRAVERSE * not accepted (by @shaunpatterson)
#554 ArcadeData/arcadedb#12437 DDL pages: SUPERTYPE NULL, CREATE BUCKET ... ID, dashed bucket names, bucket adoption of types (by @shaunpatterson)
#588 ArcadeData/arcadedb#12716, ArcadeData/arcadedb#12722, ArcadeData/arcadedb#12762, ArcadeData/arcadedb#12741, ArcadeData/arcadedb#12880 Batch: filtered sparse vector search widening, JSONL READONLY links, geo.buffer options, sparse IDF weighting, format() limits (vector-search, geospatial, sql-functions, sql-methods, sql-indexes, sql-database-admin)
#594 ArcadeData/arcadedb#12133 CREATE EDGE IF NOT EXISTS returns the existing lightweight edge
#621 ArcadeData/arcadedb#12761 GraphML export keeps characters XML cannot carry
#624 ArcadeData/arcadedb#13030 ALTER PROPERTY with a flag attribute and no value
#631 ArcadeData/arcadedb#12973 OFFSET is an alias of SKIP in SELECT and MATCH
#642 ArcadeData/arcadedb#13772 SELECT accepts LIMIT ALL, FETCH FIRST/NEXT, OFFSET n ROWS
#652 ArcadeData/arcadedb#13401 CREATE EDGE with a null FROM/TO, and CONTAINS null

Each PR is merged with --no-ff, so the original commits and authors (including the external contributions in #553 and #554) are kept.

Notes

The superseded PRs stay open until this one merges; they will be closed then with a link here.

Merge after the 26.12.1 release.

robfrank and others added 28 commits November 12, 2026 17:55
…h (#11563)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The reference pages of the graph statements show four forms that the server
does not accept. Measured on arcadedata/arcadedb:26.12.1-SNAPSHOT (engine,
server and network jars of main 1541bf7f9f9a3f670a54e42b05c1071cc9c3a514)
and on arcadedata/arcadedb:26.10.1, which answers the same:

1. CREATE VERTEX without a type. The page made the type optional
   ("CREATE VERTEX [<type>] [BUCKET <bucket>]") and showed the example
   "CREATE VERTEX SET brand = 'fiat'". The engine answers 400
   "Missing target": a vertex always belongs to a type. The syntax block now
   requires the type, the page says so, and the example is gone (the next one
   creates a vertex of the type V1 with its properties).

2. CREATE EDGE without a type. The example "CREATE EDGE FROM #10:3 TO #11:4
   SET brand = 'fiat'" answers 400 "Missing target". The example now names
   the type E1, the one the other examples of the page create, and the page
   says that the type is required.

3. DELETE ... RETURN COUNT. The page listed COUNT among the values of
   RETURN. The grammar of DELETE has RETURN BEFORE only, so
   "DELETE FROM Profile RETURN COUNT" answers 400 "mismatched input 'RETURN'".
   The page now says that the statement returns the number of deleted
   records without the clause, and lists BEFORE, which returns each deleted
   record as it was before the removal (as the RETURNING bullet of the same
   page already said).

4. TRAVERSE *. The Fields section said that "*" traverses all fields, while
   the example of the same page said that "* is not accepted after TRAVERSE".
   The engine answers 400 "extraneous input '*'" for "TRAVERSE * FROM #1:0",
   and accepts the fields and the type-level fields ("TRAVERSE name FROM
   #1:0", "TRAVERSE Person.name FROM #1:0"). The Fields section now says
   that the wildcard is not accepted, as the example shows.

Two examples of the same pages are fixed with them, of the same kind: the
bucket hints "CREATE VERTEX V1 BUCKET recent" and "CREATE EDGE E1 BUCKET
EuropeEdges" name a bucket that does not exist and are refused with "Bucket
with name '<bucket>' was not found", the examples of the pages that use a
type that the page never creates ("CREATE VERTEX Employee CONTENT ...",
"CREATE EDGE E FROM ...") are refused with "Type with name '...' was not
found", and the two examples that use the type E, which the page never
creates either, now use the type E1 it does create.

Every example of the four pages was run against the server after the change.
…cept

The reference pages of the DDL statements (`CREATE TYPE`, `ALTER TYPE`,
`DROP TYPE`, `CREATE BUCKET`) describe six forms that the server does not
accept, or that it answers differently. Measured on
arcadedata/arcadedb:26.12.1-SNAPSHOT (engine, server and network jars of
main 1541bf7f9f9a3f670a54e42b05c1071cc9c3a514) and on
arcadedata/arcadedb:26.10.1, which answers the same:

1. "SUPERTYPE ... Use `NULL` to remove a super-type assignment" in the table
   of the attributes of ALTER TYPE. "ALTER TYPE T SUPERTYPE NULL" answers
   400 "mismatched input 'SUPERTYPE'". The table now says that a super-type
   is removed with "-<type>", the form the server accepts.

2. "CREATE BUCKET <bucket> [IF NOT EXISTS] [ID <bucket-id>]" and "the
   numeric ID you want to use for the bucket". "CREATE BUCKET other ID 42"
   answers 400 "mismatched input 'ID'". The syntax block drops the option
   and the page says that the server assigns the ID.

3. "for all other characters, you can use alphanumeric characters,
   underscores and dashes" for the name of a bucket. "CREATE BUCKET
   my-bucket" answers 400 "mismatched input '-'"; the name is accepted
   quoted. The page now says that a name with a dash has to be quoted.

4. "[BUCKET <bucket-id>[,]*]" and "the ID's of the buckets you want this
   type to use" for the buckets of a type, while the example of the page
   uses the names of the buckets. The statement takes the names, and a
   numeric id crashes with a NullPointerException (reported in
   ArcadeData/arcadedb#12436). The syntax block and the text now say that
   the option takes the names.

5. "This operation won't delete the associated bucket" in the section of
   DROP TYPE. The buckets of the type are deleted with it, and the records
   they hold with them. The page now says that.

6. "In the event that a bucket of the same name exists in the bucket, the
   new type uses this bucket by default ... The new bucket has the same name
   as the type, but in lower-case" in the section of CREATE TYPE. A type
   uses the buckets named "<type>_<n>", creating the ones that do not exist
   yet and reusing the ones that are already there, and it never adopts a
   bucket that carries the name of the type itself. The page now says that.
# Conflicts:
#	src/main/asciidoc/reference/sql/sql-types.adoc
…inst the record (26.12.1)

# Conflicts:
#	src/main/asciidoc/reference/sql/sql-select.adoc
… engine refuses (CREATE VERTEX and CREATE EDGE without a type, DELETE ... RETURN COUNT, TRAVERSE *)
… does not accept (ALTER TYPE ... SUPERTYPE NULL, CREATE BUCKET ... ID, a bucket name with a dash, the bucket id of CREATE TYPE, the bucket of a dropped type, the bucket a new type adopts)
…#12880

# Conflicts:
#	src/main/asciidoc/reference/sql/sql-indexes.adoc
# Conflicts:
#	src/main/asciidoc/reference/sql/sql-select.adoc
@mergify

mergify Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants