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

Can't execute SQL query for create index

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: