Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-8326

Can't execute SQL query for create index

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I try to execute SQL query

      CREATE INDEX IF NOT EXISTS "personNameIndex" ON "person" ("name");

      using method 

      cache.query(query).getColumnsCount()

      and this call is never ends, because it contains semicolon.

       

      See the code in org.apache.ignite.internal.sql.command.SqlCreateIndexCommand method parseIndexProperties. This method doesn't break when tokenType is SEMICOLON, but break when tokenType is EOF

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stepanovmixail Stepanov Mikhail
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: