GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — SQL: Setting a `SUPERTYPE` · Issue #862 · ArcadeData/arcadedb

SQL: Setting a SUPERTYPE #862

New issue
Copy link
New issue
Copy link
Closed
Closed
SQL: Setting a SUPERTYPE#862
Copy link
Assignees
gramian
Labels
documentationImprovements or additions to documentation
Milestone
23.2.1

Description

@gramian
gramian
opened on Feb 14, 2023
Issue body actions

ArcadeDB Version: v23.1.2 (build 9dbe3ce/1675373316135/main)

JDK Version: openjdk 11.0.18 2023-01-17

OS: MacOS 12.6

Setting a super type without the + character prefixing the super type fails, even though documented to work. However, given the + / - syntax, is the plain syntax even necessary? If so, this part could just be removed from the documentation.

Expected behavior

Success

Actual behavior

Cannot execute command Encountered " <ALTER> "ALTER "" at line 1, column 1. Was expecting one of: <ALIGN> ... <SELECT> ... <TRAVERSE> ... <MATCH> ... <INSERT> ... <RETURN> ... <CHECK> ... <BACKUP> ... <REBUILD> ... <EXPORT> ... <IMPORT> ... <BEGIN> ... <COMMIT> ... <ROLLBACK> ... <IF> ... <SLEEP> ... <SELECT> ... <SELECT> ... <TRAVERSE> ... <MATCH> ... <INSERT> ...

Details
<ArcadeDB_0> Error on command execution (PostCommandHandler)
com.arcadedb.exception.CommandSQLParsingException: ALTER TYPE sup SUPERTYPE doc
	at com.arcadedb.query.sql.parser.StatementCache.throwParsingException(StatementCache.java:126)
	at com.arcadedb.query.sql.parser.StatementCache.parse(StatementCache.java:116)
	at com.arcadedb.query.sql.parser.StatementCache.get(StatementCache.java:70)
	at com.arcadedb.query.sql.SQLQueryEngine.parse(SQLQueryEngine.java:207)
	at com.arcadedb.query.sql.SQLQueryEngine.command(SQLQueryEngine.java:102)
	at com.arcadedb.database.EmbeddedDatabase.command(EmbeddedDatabase.java:1250)
	at com.arcadedb.server.ServerDatabase.command(ServerDatabase.java:416)
	at com.arcadedb.server.http.handler.PostCommandHandler.executeCommand(PostCommandHandler.java:127)
	at com.arcadedb.server.http.handler.PostCommandHandler.execute(PostCommandHandler.java:88)
	at com.arcadedb.server.http.handler.DatabaseAbstractHandler.execute(DatabaseAbstractHandler.java:91)
	at com.arcadedb.server.http.handler.AbstractHandler.handleRequest(AbstractHandler.java:128)
	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:393)
	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:859)
	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
	at org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1282)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: com.arcadedb.query.sql.parser.ParseException: Encountered " <ALTER> "ALTER "" at line 1, column 1.
Was expecting one of:
    <ALIGN> ...
    <SELECT> ...
    <TRAVERSE> ...
    <MATCH> ...
    <INSERT> ...
    <RETURN> ...
    <CHECK> ...
    <BACKUP> ...
    <REBUILD> ...
    <EXPORT> ...
    <IMPORT> ...
    <BEGIN> ...
    <COMMIT> ...
    <ROLLBACK> ...
    <IF> ...
    <SLEEP> ...
    <SELECT> ...
    <SELECT> ...
    <TRAVERSE> ...
    <MATCH> ...
    <INSERT> ...
    
	at com.arcadedb.query.sql.parser.SqlParser.generateParseException(SqlParser.java:26917)
	at com.arcadedb.query.sql.parser.SqlParser.jj_consume_token(SqlParser.java:26762)
	at com.arcadedb.query.sql.parser.SqlParser.StatementInternal(SqlParser.java:1359)
	at com.arcadedb.query.sql.parser.SqlParser.Statement(SqlParser.java:1004)
	at com.arcadedb.query.sql.parser.SqlParser.Parse(SqlParser.java:245)
	at com.arcadedb.query.sql.parser.StatementCache.parse(StatementCache.java:111)
	... 16 more

Steps to reproduce

CREATE DOCUMENT TYPE doc;
CREATE DOCUMENT TYPE sup;
ALTER TYPE sup SUPERTYPE doc;

This works as expected:

ALTER TYPE sup SUPERTYPE +doc;

Activity

  1. lvca commented on Feb 15, 2023

    @lvca
    lvca
    on Feb 15, 2023
    Member
    More actions

    I remember we removed that syntax from ArcadeDB, because using + and - was easier to do. We can remove from the docs any reference to the old-OrientDB syntax.

    Reacted by Christian Himpe
  2. lvca
    assigned
    gramian
    on Feb 15, 2023
  3. lvca
    added
    documentationImprovements or additions to documentation
    on Feb 15, 2023
  4. lvca
    added this to the 23.2.1 milestone on Feb 15, 2023
  5. gramian commented on Feb 15, 2023

    @gramian
    gramian
    on Feb 15, 2023
    CollaboratorAuthor
    More actions

    @lvca What about the SUPERTYPES keyword for multiple inheritances? I could just use multiple SUPERTYPE commands to achieve the same, right? I saw in the grammar that SUPERTYPES is still there, but it throws a similar error as above when used.

    • Should I remove SUPERTYPES from the docu too?
    • Should it be removed from the grammar or is there a special purpose for SUPERTYPES?
  6. lvca
    added a commit that references this issue on Feb 15, 2023

    Removed `supertypes` from the SQL grammar because not used in ArcadeDB

    9275b5c
  7. lvca commented on Feb 15, 2023

    @lvca
    lvca
    on Feb 15, 2023
    Member
    More actions

    SUPERTYPES is not used in ArcadeDB, I'm removing it from the grammar. Thanks, @gramian!

  8. gramian commented on Feb 15, 2023

    @gramian
    gramian
    on Feb 15, 2023
    CollaboratorAuthor
    More actions

    ArcadeData/arcadedb-docs#119 fixes this in the docs

  9. gramian
    closed this as completedon Feb 15, 2023
  10. lvca commented on Feb 15, 2023

    @lvca
    lvca
    on Feb 15, 2023
    Member
    More actions

    Thanks

  11. mergify
    added a commit that references this issue on Apr 13, 2026

    chore(deps): update testcontainers requirement from >=4.9.1 to >=4.13…

    8273067
  12. tae898
    added 2 commits that reference this issue on Jun 28, 2026

    Removed `supertypes` from the SQL grammar because not used in ArcadeDB

    76acf70

    chore(deps): update testcontainers requirement from >=4.9.1 to >=4.13…

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

Metadata

Metadata

Assignees

  • @gramian
    gramian

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

    Milestone

    • 23.2.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.