Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1958

Cannot create Schema objects when using Avatica with HSQLDB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 1.17.0
    • avatica
    • None

    Description

      Encountered this one while porting a test from Phoenix to Avatica with HSQLDB for the Go client.

      This happens whether I open the connection with or without a default schema to Avatica.

      I then create a schema: `CREATE SCHEMA IF NOT EXISTS avaticatest`.

      I then attempt to create a table:

      CREATE TABLE avaticatest.some_table (
        int INTEGER PRIMARY KEY
      )
      

      Avatica fails with this message:

      An error was encountered while processing your request: RuntimeException: java.sql.SQLException: invalid schema name: avaticatest in statement [CREATE TABLE avaticatest.some_table (
                                                      int INTEGER PRIMARY KEY
                                                  )] -> SQLException: invalid schema name: avaticatest in statement [CREATE TABLE avaticatest.some_table (
                                                      int INTEGER PRIMARY KEY
                                                  )] -> HsqlException: invalid schema name: avaticatest
      

      I have tried a few things that did not work:

      • Making the schema name uppercase `AVATICATEST` everywhere
      • Making the table name also uppercase everywhere: `SOME_TABLE`.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              francischuang Francis Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: