Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain sql execute error #269

Open
zebozhuang opened this issue Apr 1, 2022 · 0 comments
Open

Explain sql execute error #269

zebozhuang opened this issue Apr 1, 2022 · 0 comments

Comments

@zebozhuang
Copy link

Versions

eg: 0.7.1

Describe the bug

I build quicksql and start up the server, I ran by using quicksql.sh command as following

./bin/quicksql.sh -e "EXPLAIN select * from example limit 5"

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

The description about the sql performance.

Actual behavior

RuntimeException

Full Output Logs

2022-04-01 15:09:33,133 [main] INFO - job.execute.start:2022-04-01 15:09:33:133
2022-04-01 15:09:33,190 [main] INFO - Your SQL is 'EXPLAIN select * from example limit 5'
java.lang.RuntimeException: Encountered "select" at line 1, column 10.
Was expecting:
"PLAN" ...

at com.qihoo.qsql.utils.SqlUtil.parseTableName(SqlUtil.java:26)
at com.qihoo.qsql.launcher.ExecutionDispatcher.main(ExecutionDispatcher.java:84)

2022-04-01 15:09:33,267 [main] ERROR - execution.error:Encountered "select" at line 1, column 10.
Was expecting:
"PLAN" ...

Additional context

Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant