[jira] [Created] (IGNITE-8326) Can't execute SQL query for create index

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-8326) Can't execute SQL query for create index

Anton Vinogradov (Jira)
Stepanov Mikhail created IGNITE-8326:
----------------------------------------

             Summary: Can't execute SQL query for create index
                 Key: IGNITE-8326
                 URL: https://issues.apache.org/jira/browse/IGNITE-8326
             Project: Ignite
          Issue Type: Bug
            Reporter: Stepanov Mikhail


I try to execute SQL query
{code:java}
CREATE INDEX IF NOT EXISTS "personNameIndex" ON "person" ("name");{code}
using method 
{code:java}
cache.query(query).getColumnsCount(){code}
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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)