Vadim Pakhnushev created IGNITE-20494:
-----------------------------------------

             Summary: sql command does not enter repl
                 Key: IGNITE-20494
                 URL: https://issues.apache.org/jira/browse/IGNITE-20494
             Project: Ignite
          Issue Type: Bug
          Components: cli
            Reporter: Vadim Pakhnushev
            Assignee: Vadim Pakhnushev
             Fix For: 3.0.0-beta2


{code:bash}
[defaultNode]> sql "create table test(i int primary key)"
SQL query execution error
Exception while executing query [query="create table test(i int primary key)"]. 
Error message:IGN-SQL-3 TraceId:9f1d43d1-5f6d-4319-94a1-2225e931a80d IGN-SQL-3 
TraceId:9f1d43d1-5f6d-4319-94a1-2225e931a80d Failed to parse query: Non-query 
expression encountered in illegal context <--- Why I get this error?
[defaultNode]> SQL    <---- here type exactly 3 letters and hit enter
SQL query execution error
Exception while executing query [query="create table test(i int primary key)"]. 
Error message:IGN-SQL-3 TraceId:801a965d-3adf-443c-8028-d080fa894fb8 IGN-SQL-3 
TraceId:801a965d-3adf-443c-8028-d080fa894fb8 Failed to parse query: Non-query 
expression encountered in illegal context
{code}

I would expect to enter the repl, but I get the same error message that I've 
got before. 

Also, the first error I've got seems strange, exactly the same query works in 
the repl.

Note: if I type "sql " with the space after -- it enters the repl. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to