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 — Assignment of (boolean) custom attributes are cast to strings when done from `console` · Issue #859 · ArcadeData/arcadedb

Assignment of (boolean) custom attributes are cast to strings when done from console #859

New issue
Copy link
New issue
Copy link
Closed
Closed
Assignment of (boolean) custom attributes are cast to strings when done from console#859
Copy link
Assignees
lvca
Labels
unable to reproduce
Milestone
23.2.1

Description

@gramian
gramian
opened on Feb 13, 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

Custom attributes of type boolean (and probably other types too) assigned to properties (and probably types too) from the console are converted to string. From studio / http it works as expected.

Expected behavior

Custom attribute assigned is of type boolean

Actual behavior

Custom attribute assigned is of type string

Steps to reproduce

From console:

CREATE DOCUMENT TYPE doc;
CREATE PROPERTY doc.prop STRING;
ALTER PROPERTY doc.prop CUSTOM test = true;

Activity

Next
  1. lvca
    self-assigned this
    on Feb 13, 2023
  2. lvca
    added
    bug
    on Feb 13, 2023
  3. lvca
    added this to the 23.2.1 milestone on Feb 13, 2023
  4. lvca commented on Feb 13, 2023

    @lvca
    lvca
    on Feb 13, 2023
    Member
    More actions

    I've just created this test case and passes:

      @Test
      public void testCustomPropertyInSchema() throws IOException {
        Assertions.assertTrue(console.parse("connect " + DB_NAME));
        Assertions.assertTrue(console.parse("CREATE DOCUMENT TYPE doc;"));
        Assertions.assertTrue(console.parse("CREATE PROPERTY doc.prop STRING;"));
        Assertions.assertTrue(console.parse("ALTER PROPERTY doc.prop CUSTOM test = true;"));
        Assertions.assertEquals(true, ((EmbeddedDatabase) console.getDatabase()).getSchema().getType("doc").getProperty("prop").getCustomValue("test"));
      }
  5. gramian commented on Feb 13, 2023

    @gramian
    gramian
    on Feb 13, 2023
    CollaboratorAuthor
    More actions

    @lvca Weird. When I run:

    SELECT properties.custom.test[0].type() FROM schema:types;
    

    from the studio or console I get:

    STRING
    

    Is maybe "true" (string) implicitliy converted to true (boolean) in your test?

  6. lvca commented on Feb 13, 2023

    @lvca
    lvca
    on Feb 13, 2023
    Member
    More actions

    Modified to include your query and it returns a boolean:

      @Test
      public void testCustomPropertyInSchema() throws IOException {
        Assertions.assertTrue(console.parse("connect " + DB_NAME));
        Assertions.assertTrue(console.parse("CREATE DOCUMENT TYPE doc;"));
        Assertions.assertTrue(console.parse("CREATE PROPERTY doc.prop STRING;"));
        Assertions.assertTrue(console.parse("ALTER PROPERTY doc.prop CUSTOM test = true;"));
        Assertions.assertEquals(true, ((EmbeddedDatabase) console.getDatabase()).getSchema().getType("doc").getProperty("prop").getCustomValue("test"));
    
        Assertions.assertEquals(Type.BOOLEAN.name().toUpperCase(),
            ((EmbeddedDatabase) console.getDatabase()).query("sql", "SELECT properties.custom.test[0].type() as type FROM schema:types").next()
                .getProperty("type"));
      }

    Are you using a local or remote connection?

  7. lvca
    added a commit that references this issue on Feb 13, 2023

    test: added test case for custom type in property from console

    c5d516b
  8. gramian commented on Feb 13, 2023

    @gramian
    gramian
    on Feb 13, 2023
    CollaboratorAuthor
    More actions

    I am using a local connection.

  9. gramian commented on Feb 13, 2023

    @gramian
    gramian
    on Feb 13, 2023
    CollaboratorAuthor
    More actions

    @lvca Your test uses query while studio and console use both command. Could this make the difference?

  10. lvca commented on Feb 14, 2023

    @lvca
    lvca
    on Feb 14, 2023
    Member
    More actions

    Tested with command and works. Since you mentioned Studio, it could be the HTTP layer or the RemoteDatabase itself. I'm checking this out.

  11. lvca
    added a commit that references this issue on Feb 14, 2023

    test: added more test to reproduce the issue with custom and properties

    d1942f9
  12. lvca commented on Feb 14, 2023

    @lvca
    lvca
    on Feb 14, 2023
    Member
    More actions

    Also from remote works. I've added those new tests to the suite.

  13. lvca
    added
    unable to reproduce
    and removed
    bug
    on Feb 14, 2023
  14. gramian commented on Feb 14, 2023

    @gramian
    gramian
    on Feb 14, 2023
    CollaboratorAuthor
    More actions

    @lvca Can you also not manually reproduce this in the console?

  15. 1 remaining item

  16. gramian commented on Feb 14, 2023

    @gramian
    gramian
    on Feb 14, 2023
    CollaboratorAuthor
    More actions

    Maybe (Hopefully) this resolved itself in the current snapshot, I only tested in 23.1.2. I will try to get the current repo head to work.

  17. gramian commented on Feb 15, 2023

    @gramian
    gramian
    on Feb 15, 2023
    CollaboratorAuthor
    More actions

    It works for me too now. Great!

    Reacted by Luca Garulli
  18. gramian
    closed this as completedon Feb 15, 2023
  19. mergify
    added a commit that references this issue on Aug 24, 2025

    chore(deps): bump actions/setup-java from 4.7.1 to 5.0.0 [skip ci]

    d86df3a
  20. mergify
    added a commit that references this issue on Nov 5, 2025

    chore(deps): bump actions/setup-java from 4.6.0 to 5.0.0 [skip ci]

    40a7904
  21. mergify
    added a commit that references this issue on Feb 2, 2026

    chore(deps): bump anthropics/claude-code-action from 1.0.34 to 1.0.41…

    6d9bdd1
  22. 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
  23. mergify
    added a commit that references this issue on May 10, 2026

    chore(studio-deps-dev)(deps-dev): bump semver from 7.7.4 to 7.8.0 in …

    8d6fd4f
  24. tae898
    added 7 commits that reference this issue on Jun 28, 2026

    test: added test case for custom type in property from console

    72665f3

    test: added more test to reproduce the issue with custom and properties

    a0fd3f3

    chore(deps): bump actions/setup-java from 4.7.1 to 5.0.0 [skip ci]

    bc400fa

    chore(deps): bump actions/setup-java from 4.6.0 to 5.0.0 [skip ci]

    fd3d2ad

    chore(deps): bump anthropics/claude-code-action from 1.0.34 to 1.0.41…

    d08bbe3

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

    149a6f5

    chore(studio-deps-dev)(deps-dev): bump semver from 7.7.4 to 7.8.0 in …

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

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

unable to reproduce

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.