Repository navigation
Conversation
…inst the record (#11442, #11537)
…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.
…it holds k allowed records
…of quadrantSegments
…requency over every bucket of the type
…aracter ceiling on a whole pattern
# 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
…ing lightweight edge
# Conflicts: # src/main/asciidoc/reference/sql/sql-select.adoc
…and OFFSET ROWS
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
This was referenced Dec 4, 2026
This branch has not been deployed
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.
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.
UNWIND <expression> AS <alias>, evaluated against the recordRETURN COUNTremoved,TRAVERSE *not accepted (by @shaunpatterson)SUPERTYPE NULL,CREATE BUCKET ... ID, dashed bucket names, bucket adoption of types (by @shaunpatterson)geo.bufferoptions, sparse IDF weighting,format()limits (vector-search, geospatial, sql-functions, sql-methods, sql-indexes, sql-database-admin)OFFSETis an alias ofSKIPin SELECT and MATCHLIMIT ALL,FETCH FIRST/NEXT,OFFSET n ROWSCONTAINS nullEach PR is merged with
--no-ff, so the original commits and authors (including the external contributions in #553 and #554) are kept.Notes
OFFSETas an alias ofSKIPinsql-select.adoc. They are now oneOFFSETbullet carrying both facts (PostgreSQL idiom andROW/ROWSnoise word).sql-select.adoc: main's negative-SKIPnote and streaming-UNWINDparagraph kept, SQL SELECT: UNWIND <expression> AS <alias>, evaluated against the record (26.12.1) #534's syntax and expression section added after them); docs: post-merge updates for #12716 #12722 #12762 #12741 #12880 #588 vs main (sql-indexes.adoc: docs: post-merge updates for #12716 #12722 #12762 #12741 #12880 #588's IDF formula paragraph placed before main's sub-type IDF NOTE); docs(#12973): OFFSET is an alias of SKIP in SELECT and MATCH #631 vs SQL SELECT: UNWIND <expression> AS <alias>, evaluated against the record (26.12.1) #534 (SELECT syntax block now shows both the newUNWINDform andSKIP|OFFSET)._(Fixed in 26.12.1.)_to the file's_(Since v26.12.1.)_style.docs-validator.pypasses, and asciidoctor reports no new warnings on any touched file compared with main.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.